Allow nginx to upload more than 1 MB file

By default Nginx will allow uploading 1 MB file, By using below directive we can upload up to 10 MB If we need to upload larger than 10 MB just replace 10 with your specified size.

client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 10M;

Once above directive defined in virtual host restart the Nginx to take effect.

Leave a Comment

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

We promise not to spam you, and we don't usually send more than one email a week.

You have Successfully Subscribed!