Contents
Error: 413 Request Entity Too Large
The issue is that nginx limits the upload size. The solution is as follows:
-
Open the nginx configuration file nginx.conf, usually located at: /etc/nginx/nginx.conf.
-
Add client_max_body_size 64m; to the http{} section. 64m is the maximum allowed upload size.
-
Save the file and restart nginx with service nginx restart.
Error: The Uploaded File Exceeds the upload_max_filesize Directive in php.ini
Solution: Modify the following settings in /etc/php/7.3/apache2/php.ini:
post_max_size = 64M
upload_max_filesize = 64M
(Both settings are located fairly far down in the file and are not easy to find.)

Comments