Allow nginx to upload more than 1 MB file

0 0
0 0

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.

Allow nginx to upload more than 1 MB file 1

About Author

Babin Lonston

Overall 14+ Years of experience in the IT field, currently working as a Senior Linux administration with Virtualization & Cloud. Being numismatist for a long time.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

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!