-
Notifications
You must be signed in to change notification settings - Fork 732
Changed path() method to getRealPath() #300
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
Conversation
Uploading a regular file using laravel-filemanager causes this error: `Call to undefined method Symfony\Component\HttpFoundation\File\UploadedFile::path()` According to other places inside the code, the correct method should be `getRealPath()`, after changing both references in the UploadController I was able to upload files without issues. The error only occured when uploading using the "Files" type of the file manager (like a PDF).
Hi guys. Im facing this error right now. What should I do for this? Thanks |
Until this is merged, you can reference my fork, in your composer.json file add these lines:
And than change the version for file manager to this:
Then run |
@PendoNL Hi. Thanks for your solution. One more thing, just wondering what will be the effect or what's the difference if I will do your solution? I mean, hmm because you said "That'll fix it for now." . |
As far as I know this is the only solution that works. What I meant was: you may use my fork until this gets merged and we can start using the original package again. Sorry if I confused you with that. |
@PendoNL Ohw, that's great. Thank you . I'll try it now. |
@PendoNL What did you do, to make it work men? |
See the details on the PR, just changed 2 lines of code: |
@PendoNL Wow! you're so great men 👍 |
Thank you so much @PendoNL . |
Uploading a regular file using laravel-filemanager causes this error:
Call to undefined method Symfony\Component\HttpFoundation\File\UploadedFile::path()
According to other places inside the code, the correct method should be
getRealPath()
, after changing both references in the UploadController I was able to upload files without issues. The error only occured when uploading using the "Files" type of the file manager (like a PDF).