Nginx default upload size

The default maximum file size for uploads in Nginx is 2 MB. Users will receive an error 413 – Request Entity Too Large Error and Solution when uploading a file larger than this limit and you didn't think about setting it when configuring your server.

You can easily raise it with the client_max_body_size directive, e.g.

server {
# ...
client_max_body_size 512M;
}
Published: November 12th, 2019
Tags: til,painful
References: