413

413 Payload Too Large Error

Category: HTTP Errors | Platforms: nginx apache php wordpress

What This Error Means

The 413 Payload Too Large error indicates that the request entity is larger than limits defined by the server. This typically happens during file uploads when the file size exceeds the maximum allowed configuration.

Common Causes

  • The client_max_body_size directive is set too low in the Nginx configuration file.
  • The LimitRequestBody directive in Apache is restricting the size of the HTTP request body.
  • The upload_max_filesize or post_max_size settings in php.ini are smaller than the file being uploaded.
  • The web application itself has a coded limit on file sizes for security or storage reasons.

How to Fix It (For Users)

  1. 1 Use a file compression tool to reduce the size of the document or image before uploading.
  2. 2 If uploading multiple files at once, try uploading them one by one to stay under the limit.
  3. 3 Review the website's help section to see if there is a stated maximum file size limit.

For Site Owners / Developers

  1. Open your nginx.conf file and add or edit client_max_body_size 100M; inside the http, server, or location block.
  2. Edit your .htaccess or httpd.conf file and set LimitRequestBody 104857600 (value is in bytes).
  3. Update your php.ini file to increase both upload_max_filesize and post_max_size to values larger than your expected uploads.
  4. After making changes to configuration files, always restart Nginx, Apache, or PHP-FPM for the changes to take effect.

When It Is NOT Your Fault

If the server administrator has set an unreasonably low limit for file uploads that prevents normal usage.

Check if this outage affects everyone globally

This error often indicates a wider problem. Use our tool to verify if the site is down for everyone.

Check Website Status →

Recommended Tool to Prevent This Error

Prevent server timeouts and resource exhaustion with scalable cloud infrastructure.

High-Performance Cloud Hosting