Enter the below command to the terminal for Nginx 413 Error
sudo su
nano /etc/nginx/nginx.conf
Add under HTTP section below line
client_max_body_size 8M;
Save the file by pressing Ctrl + o
then press Enter key then press Ctrl + x
After that, enter the below command
systemctl reload nginx.service
If you use PHP, then you need to edit the php.ini
file like below
memory_limit = 64M
upload_max_filesize = 8M
post_max_size = 10M
If you use PHP-FPM, then you need to run the below command
systemctl restart php-fpm