413 Request Entity Too Large Error: WordPress Fix
Fix 413 Request Entity Too Large in WordPress: find which limit blocks your upload, raise client_max_body_size or LimitRequestBody and set PHP limits right.

Last updated December 3, 2026
413 Request Entity Too Large means your web server refused an upload because it was bigger than the server allows. It happens before WordPress or PHP even see the file.
The fix is to raise the right limit. Use the checker below to see which limit blocks your file, then follow the steps for your server.
Key Takeaways
- The 413 error usually comes from the web server, not from WordPress.
- Nginx has a default body limit of just 1M, set by client_max_body_size.
- Current Apache versions default LimitRequestBody to 1 GiB.
- PHP defaults are 2M for upload_max_filesize and 8M for post_max_size.
- Raise all layers together, or the next limit will block you.
Digieh 413 limit checker
Enter your file size and the limits you know. Use values like 64M or 1G. Leave a box empty if you do not know it.
Digieh tool. Defaults come from the Nginx, Apache and PHP manuals: Nginx 1M, Apache 1G in current versions, PHP 2M and 8M. Hosts often change them. It runs in your browser only.
What Does 413 Request Entity Too Large Mean?
Every upload is sent as a request with a body. If the body is bigger than the server allows, the server stops and returns status code 413.
The official name today is 413 Content Too Large. Before the current HTTP standard, it was called Payload Too Large, and many servers still show older names.
Source: MDN Web Docs, 413 Content Too Large, read December 3, 2026.
Nginx still prints Request Entity Too Large. Its manual says this error is returned when the request size is over the configured value.
Source: Nginx documentation, client_max_body_size, read December 3, 2026.
Which Limit Causes the 413 Error?
An upload passes through two layers. The web server checks it first, then PHP checks it.
| Layer | Setting | Default | What you see |
|---|---|---|---|
| Nginx | client_max_body_size | 1M | 413 Request Entity Too Large |
| Apache | LimitRequestBody | 1 GiB in current versions | An error page |
| PHP | upload_max_filesize | 2M | A WordPress size message |
| PHP | post_max_size | 8M | The upload fails |
Source: Nginx docs, Apache docs and the PHP manual, read December 3, 2026. Hosts often change these defaults.
Apache notes that its default was 0, meaning unlimited, in version 2.4.53 and earlier. So on Apache, a 413 often comes from a host rule, not the default.
How Do You Fix 413 on Nginx?
- Open your Nginx site config, often in /etc/nginx/sites-available/.
- Inside the server block, add or change client_max_body_size.
- Test the config, then reload Nginx.
- Try the upload again.
server {
client_max_body_size 64M;
}
sudo nginx -t
sudo systemctl reload nginxThe Nginx manual says this setting works in the http, server and location blocks. Setting it to 0 turns the check off, but a real limit is safer.
Source: Nginx documentation, client_max_body_size, read December 3, 2026.
How Do You Fix 413 on Apache?
Apache uses LimitRequestBody. You can set it in the main config, a virtual host or a .htaccess file if your host allows it.
LimitRequestBody 104857600The value is in bytes. 104857600 bytes is 100 MiB. Apache says requests over the limit get an error response instead of being served.
Source: Apache HTTP Server documentation, LimitRequestBody, read December 3, 2026.
Free updates
Join the Digieh list
Be the first to know when our weekly brief launches.
No spam. Unsubscribe anytime. Read our Privacy Policy.
Do You Also Need to Raise PHP Limits?
Yes, in most cases. Once the web server lets the file through, PHP checks it next.
upload_max_filesize = 64M
post_max_size = 80M
memory_limit = 256MThe PHP manual says post_max_size must be larger than upload_max_filesize. It also says memory_limit should generally be larger than post_max_size.
Source: PHP manual, php.ini core directives, read December 3, 2026.
For full PHP steps, see our guide to the upload_max_filesize error in WordPress.
What If You Cannot Edit Server Files?
- Look for a PHP settings page in your hosting control panel.
- Ask your host to raise the web server body limit for your site.
- Make the file smaller before you upload it.
- Upload large files by a file manager or SFTP, then add them to WordPress with a plugin.
For images, compressing is often the fastest fix. Try our free image compressor to shrink photos before upload.
What Is a Safe Upload Limit?
Pick a limit that fits the biggest file you really need, plus a little room. Very high limits let anyone send huge requests to your server.
- For a blog with photos, a limit in the tens of megabytes is usually enough.
- For sites that take large backups or video, raise it only for the admin area if you can.
- Keep the web server limit a bit higher than PHP post_max_size.
- Write down the values you set, so the next change is easy.
Nginx lets you set a different limit inside a location block. You can use that to allow big uploads only on the upload path.
Can a Plugin Cause the 413 Error?
A plugin cannot change the web server limit by itself. But some plugins send very large requests, which then hit the limit.
- Backup and import plugins that upload big archive files.
- Page builders that save very large pages in one request.
- Form plugins that accept big file attachments.
If the error only happens in one plugin, check its settings for a chunked upload or a smaller part size. That often avoids the limit completely.
Why Does the Error Still Show After a Fix?
- The server was not reloaded after the config change.
- Another layer, like a firewall or content delivery network, has its own limit.
- PHP limits are still lower than the file.
- You edited a config file the server does not read.
Use the checker again with the new values. If it says the file fits all limits, look at your firewall or content delivery network next.
Clear your browser cache and try in a private window too. A cached error page can make it look like nothing changed, even after a correct fix on the server.
Is the 413 Error Bad for Your Site?
Visitors do not see it on normal pages, because it only happens when someone sends a large request. It mostly affects you and your editors when you upload files.
It can also break forms that let visitors upload files. If your site takes uploads from customers, test the form with a file near your largest expected size.
The Nginx manual also warns that browsers cannot show this error correctly. So some users may see a blank page or a reset connection instead of a clear message.
Source: Nginx documentation, client_max_body_size, read December 3, 2026.
How Do You Check Your Current Limits?
- In WordPress, go to Tools, then Site Health, then Info.
- Open the Server section to see PHP upload and post limits.
- Go to Media, Add New to see the maximum upload size WordPress reports.
- Ask your host for the web server body limit if you cannot see it.
WordPress shows PHP limits, but it cannot see the Nginx or Apache limit. That is why a 413 can appear even when WordPress says your limit is high.
Getting a different upload error? See our fix for Sorry, this file type is not permitted.
Which server does your site run on?
- Nginx
- Apache
- LiteSpeed
- Not sure
- Not sure
Test Yourself
What is the default Nginx client_max_body_size?
- 1M
- 64M
- Unlimited
The Nginx manual lists a default of 1m.
Which PHP setting must be larger than upload_max_filesize?
- memory_limit only
- post_max_size
- max_execution_time
The PHP manual says post_max_size must be larger than upload_max_filesize.
Frequently Asked Questions
What causes 413 Request Entity Too Large in WordPress?
An upload is bigger than the web server body limit, such as client_max_body_size on Nginx.
Is 413 the same as the upload_max_filesize error?
No. The 413 comes from the web server. The upload_max_filesize message comes from PHP.
How do I fix 413 without server access?
Ask your host to raise the limit, or make the file smaller before you upload it.
What does Payload Too Large mean?
It is an older name for the same 413 status code, now called Content Too Large.
Conclusion
Find the layer that blocks your file, raise that limit and keep PHP limits in the right order. Then reload the server and try again.
Editor’s Note
This guide is accurate as of December 3, 2026. Defaults come from the Nginx, Apache and PHP manuals and MDN Web Docs. Your host may use different values, so check your own settings.
Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.
Keep exploring
Your next read is waiting
1AI & TechFree Grammarly Alternatives: 5 Grammar Checkers That Work7 min read
2Visas & PassportsUK Visa Fees 2026: Official Table and Calculator7 min read
3BusinessFiverr Fee Calculator: Seller Take-Home and Buyer Cost7 min read
4EntertainmentNetflix Prices by Country: 18 Official Plans Compared7 min read
5Finance & MarketsPrintable Monthly Budget Planner: Free Fill-In Sheet 20277 min read
6Home & KitchenRepair or Replace a Dryer: Free Decision Calculator7 min readFound this useful?












