Nginx error: client intended to send too large body

For me path of nginx.conf was /etc/nginx/nginx.conf.

In my case I just added client_max_body_size in http block and it worked for me

http {
    ...
    client_max_body_size 20M;
}    

Make sure to restart nginx after changing this config

Leave a Comment