anon9348's avatar

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!

0 likes
2 replies
anon9348's avatar
anon9348
OP
Best Answer
Level 5

I solved the problem. I forgot to restart the php5-fpm service after updating the post_max_size and upload_max_filesize directives.

bashy's avatar

Make sure you do reload instead of restart if all you do is change a setting. Will save visitors getting an error while it's restarting.

Please or to participate in this conversation.