New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid $files after processAll() #25
Comments
I am also experiencing this issue. What is the solution that you've found? |
src/FileUpload/FileUpload.php Line 281 $files is a protected array of Class FileUpload. While pushing array into $files this roughly what happened
It changed all the values to the last object instance value. Solution. On Line 281
Type cast the object to array, and then again to object. This way the values were retained, and not replaced. Let me know if it worked for you too. |
Worked for me. Created PR #28 |
list($files, $headers) = $fileupload->processAll();
While uploading multiple image files, the $files array I received was wrong.
It had the same value (last image data) for all array indices.
Can anyone please confirm if this is the case with everyone or just me ?
In case it's for everyone, this is a major issue and I have found a solution which I would be happy to share.
The text was updated successfully, but these errors were encountered: