ajay01's avatar

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

0 likes
4 replies
siangboon's avatar
Level 54

it's better check the server log, it may be permission issue, or maybe php file upload limit.

ajay01's avatar

permission is 0777 and max_file_size is already 64M and I'm trying to upload an image with 100kb che.

siangboon's avatar

did your issue resolved?? what is issue you encountered and your solution???

ajay01's avatar

Yes I got the solution. Actually storage of tmp folder was full on server. I just empty the tmp folder.

2 likes

Please or to participate in this conversation.