it's better check the server log, it may be permission issue, or maybe php file upload limit.
Jun 16, 2021
4
Level 2
File Upload works fine on Local but gives error on server
I'm trying to upload a file in laravel with validation. it works fine on my local system but on the server it giving a validation error every time I try to upload any image. I have tried to debug the file instance of the server and local system. on server file object show 7 error and all basepath and file path variable show empty(""). but local instance is error free.
dd of local file instance https://nimb.ws/6NvpLQ
dd of server file instance server https://nimb.ws/tey4sP
Level 54
Please or to participate in this conversation.