Nginx Error - 413 Request Entity Too Large

If you’re getting 413 Request Entity Too Large errors trying to upload files with Nginx, you need to increase the size limit in the site configuration file (normally in /etc/nginx/sites-available). Add client_max_body_size inside the server section, where the value is the size (in megabytes) that you want to allow.

server {
	#your other site configuration
	client_max_body_size 20M;
}