When my client imports data sometimes it can be that for example the user has an csv with none unique header columns. When I do this locally I see an error:
League\ Csv \ SyntaxErrorThe header record contains duplicate column names.
League\ Csv \ SyntaxErrorThe header record contains duplicate column names.
My question is how can I handle these errors so that the user can see he uploaded a wrong csv or so? Maybe there is some pre upload hook or pre action hook where I can Do this? Any suggestions?