0
votes

I am trying to upload images to nginx server. I have changed in php.ini such as upload_max_filesize = 12M and in nginx.conf such as client_max_body_size = 30M. i am trying to upload 3 images at a time. If size of 3 image are less than 6mb , images are successfully uploaded but when images are greater than 6mb , it returns only '' and images are not uploaded. How to solve this issue??

1
have you checked post_max_size value in php ? - Mostafa Hussein
I changed post_max_size = 20M but not working - Rushikesh Shirkar
Do you have timeout? Maybe the proxy timeout settings in nginx needs to be modified ? - Mostafa Hussein
Can you tell me what changes i have to do?? - Rushikesh Shirkar
try change proxy_send_timeout = 300 and proxy_read_timeout = 300 in your nginx settings this means 300 seconds the default is 60. this if you have apache behind nginx - Mostafa Hussein

1 Answers

1
votes

you have to look for below settings

 upload_max_filesize = 20M
 post_max_size = 21M