Welcome! Log In Create A New Profile

Advanced

Why is client_max_body_size default set to 1m?

October 12, 2010 12:17PM
After migrating one of our servers to Nginx from Apache, I decided to test file uploads (as I've implemented the Accelerated Upload Support feature in PHP-FPM/nginx). I found that [url=http://wiki.nginx.org/NginxHttpCoreModule#client_max_body_size]client_max_body_size[/url] is an additional directive that affects POST/upload file sizes.

So this means that in addition to the 2 directives in PHP that must be configured for upload file size, I must also now configure Nginx as well?

I can understand this directive existing, but why default it to 1mb?

Found this issue due to this thread and my own failed upload attempts: http://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect
Subject Author Posted

Why is client_max_body_size default set to 1m?

jlangevin October 12, 2010 12:17PM

Re: Why is client_max_body_size default set to 1m?

Maxim Dounin October 12, 2010 12:54PM

Re: Why is client_max_body_size default set to 1m?

jlangevin October 12, 2010 01:05PM

Re: Why is client_max_body_size default set to 1m?

Maxim Dounin October 12, 2010 01:44PM

Re: Why is client_max_body_size default set to 1m?

jlangevin October 12, 2010 02:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready