When adding images or media to WordPress, if it invoes a upload to the hosting server, then we need to setup the file size allowance (something like that) in Nginx. Otherwise you may face a 413 Request Entity Too Large error message.
The step is very simple, the file you need to change is Nginx’s configuration file. Normally located at
You will need to add following line to the file, INSIDE http or server or location context, like:
# set client body size to 100M #
Then reload the nginx:
sudo service nginx reload
Then you should be able to upload file to the server up to 100M (which in this case) without no problem.