Website Development

22 posts

How to Fix WordPress Upload Errors (413 Request Entity Too Large and the Uploaded File Exceeds the upload_max_filesize Directive in php.ini)

For the 413 Request Entity Too Large issue, nginx limits the upload size. The solution is as follows: 1. Open the nginx configuration file nginx.conf, usually located at: /etc/nginx/nginx.conf. 2. Add client_max_body_size 64m; to the http{} section. 64m is the maximum allowed upload size. 3. Save the file and restart nginx with service nginx restart