Guides › WordPress › Site down or error screens

Error 413 Request Entity Too Large When Uploading to WordPress

The web server limits the body size of requests, separately from PHP's limits.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

A 413 error means the file you are uploading is larger than the server allows. Raise the limit in PHP and, if you use it, in Nginx or your CDN.

1Check the current limit2Raise PHP limits3Or edit .htaccess4Nginx servers5Check Cloudflare6Upload by FTP7RetestFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Check the current limit

Illustration for Step 1: Check the current limit

In WordPress open Media, Add New and read Maximum upload file size.

Step 2: Raise PHP limits

Illustration for Step 2: Raise PHP limits

In cPanel, MultiPHP INI Editor, set upload_max_filesize and post_max_size above your file size, for example 64M.

Step 3: Or edit .htaccess

Illustration for Step 3: Or edit .htaccess

Add php_value upload_max_filesize 64M and php_value post_max_size 64M if your host allows it.

Step 4: Nginx servers

Illustration for Step 4: Nginx servers

Set client_max_body_size 64M; in the server block and reload Nginx.

Step 5: Check Cloudflare

Illustration for Step 5: Check Cloudflare

The free plan limits uploads to 100 MB. Large files should use direct upload or FTP.

Step 6: Upload by FTP

Illustration for Step 6: Upload by FTP

For very large files upload by SFTP into wp-content/uploads.

Step 7: Retest

Illustration for Step 7: Retest

Try the upload again.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.