Upload Error: client intended to send too large body

If you are using Nginx and are unable to upload files exceeding 1MB or so (most common) and get your error log shows “client intended to send too large body”, then here is the fix.

Edit your Nginx configuration file (which on Debian/Ubuntu will be found at /etc/nginx/nginx.conf) and edit the setting for client_max_body_size to something you can live with. If there is no line for it, add this line:

client_max_body_size 5M;

Obviously, replace 5M (for MB) with a number that makes you happy if your upload is larger.

Enhanced by Zemanta

Posted

in

, ,

by

Comments

One response to “Upload Error: client intended to send too large body”

  1. Siva Epari Avatar
    Siva Epari

    Glad that you are using nginx 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *