Last Updated: February 25, 2016
·
533
· mangar

Upload size on Nginx

Some times we have to use the upload feature in webapp.
When using Nginx the default value is 1MB. If it's not exactly what you need you can change it by open the configuration and put this config into your server or http entry:

Globally:

http {
    client_max_body_size 10M;
}

Just your app:

server {
    client_max_body_size 10M;
}

Will change the max size for the upload files to 10MB.