You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to import a .csv file with payments a javascript error occurs.
To Reproduce
Steps to reproduce the behaviour:
Go to '/admin/payments/import'
Drag and drop a file e.g. payments.csv
Click on 'Upload'
See error
By uploading the file using Postman I get this error:
(1/1) TypeError
Argument 1 passed to League\Csv\AbstractCsv::createFromFileObject() must be an instance of SplFileObject, instance of Illuminate\Http\UploadedFile given, called in /home/lrighetti/hackerone/Ticketing/app/Http/Controllers/Backend/PaymentImportController.php on line 154
Description
When trying to import a .csv file with payments a javascript error occurs.
To Reproduce
Steps to reproduce the behaviour:
By uploading the file using Postman I get this error:
Adding this line:
$file = new SplFileObject($file);
Just before:
https://github.com/JanoCodes/Ticketing/blob/master/app/Http/Controllers/Backend/PaymentImportController.php#L153
Seems to fix it.
Desktop
Greetings,
Luciano.
The text was updated successfully, but these errors were encountered: