If you are getting this error on a fresh server – most probably your nginx configuration is not tuned. In order to avoid this error, we’ll add a line to config.
So open /etc/nginx/nginx.conf and add this line under http section
client_max_body_size 16M;
You can set up more than 16 Mb if you need, but generally it is enough for almost any tasks.
service nginx restart
And have fun! :)