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
I was upgrading one project from php 7 to php 8. After the upgrade the file upload failed due to the addition of extra key "full_path" during file upload request by php 8. When I debugged, I found that, in the "FileBag.php" file in symfony/http-foundation has miss match with this extra key "full_path".
So, due to that, instead of getting "UploadedFile" object, I am getting an array which breaks the code.
How to reproduce
In any php 8 project, if the symfony/http-foundation is used, then during the file upload if someone tries to access the "UploadedFile" object's method, it throws an error. For example, in the controller,