10 months ago

Uploading file return response code 413 - Payload too large

Posted 10 months ago by bencarter78


I'm trying to debug why my server is responding with an error code when trying to upload a 2.5MB file to it.

I have set my php.ini file to...

post_max_size = 100M
upload_max_filesize = 64M

My /etc/nginx/nginx.conf file has the following

client_max_body_size 64M;

I have restarted nginx but still get the error.

Any ideas on how to debug this or any likely causes?


Please sign in or create an account to participate in this conversation.