1. sudo nano /etc/nginx/nginx.conf 2. # set client body size to 20M # Add the following line to http or server or location context client_max_body_size 20M; 3. service nginx reload https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/