I solved the problem. I forgot to restart the php5-fpm service after updating the post_max_size and upload_max_filesize directives.
Dec 23, 2015
2
Level 5
Nginx file upload problem
Hi,
I have a problem that I do not know how to fix. I deployed a Forge server and I see that it has nginx 1.9 installed. On the old one I had nginx 1.8. With the new one I have a very strange issue.
If I upload a small size image, under 1Mb, the returned mime type is image/jpeg but if the size is bigger, the server returns with an application/octet stream mime type for my uploaded file and it says size=0.
Anyone has any idea about this or encountered this issue?
Thank you!
Level 5
Please or to participate in this conversation.