413 Request Entity Too Large: How to Fix Upload Size Errors

A 413 Request Entity Too Large error, or a message saying "The uploaded file exceeds the upload_max_filesize directive in php.ini", means you tried to upload or send something bigger than the site allows. On our hosting this is almost always a PHP upload limit you can raise yourself in a couple of minutes. This guide explains the upload size errors you might see and how to fix them.

What the error looks like

Depending on where you upload, you may see:

  • 413 Request Entity Too Large, 413 Payload Too Large or 413 Content Too Large (all the same error - the official name has changed over the years).
  • "The uploaded file exceeds the upload_max_filesize directive in php.ini."
  • WordPress: "... exceeds the maximum upload size for this site."
  • WordPress when uploading a theme or plugin: "The link you followed has expired."
  • A form or upload that seems to submit but loses all its data, or an "Are you sure you want to do this?" message.

Why it happens on Instant Access Internet Services hosting

Two limits apply to uploads through your website:

LimitDefaultWhat happens when you go over it
PHP upload_max_filesize (largest single file)64M"The uploaded file exceeds the upload_max_filesize directive" or WordPress's "exceeds the maximum upload size"
PHP post_max_size (whole form, all files together)64MPHP throws away the whole submission, so the form looks empty. WordPress shows "The link you followed has expired."
Web server request limit500 MBA true 413 error page. This limit can't be changed per account.

So an upload between 64 MB and 500 MB is stopped by PHP, and you can fix it. Anything over 500 MB needs a different upload method (see below).

How to fix it: raise the PHP upload limits

  1. Log in to cPanel and go to Software > MultiPHP INI Editor.
  2. On the Basic Mode tab, choose your domain from the menu.
  3. Set upload_max_filesize to a size bigger than your file, for example 128M or 256M.
  4. Set post_max_size to the same or a larger value. If it's smaller, it still limits you.
  5. Click Apply.
  6. Reload the upload page and try again. In WordPress, Media > Add New Media File shows the new "Maximum upload file size".

Only raise the limits as far as you need. Values above 500M won't help, because the web server stops the request first. If big uploads start but then stall or time out, see the PHP settings guide for the related time settings.

If the change doesn't take effect

  • Make sure you picked the right domain in the editor. A subdomain has its own settings.
  • Check that a plugin or old php.ini/.user.ini file you uploaded isn't setting a lower value. Rules you add by hand elsewhere can override the editor.
  • Some plugins (form builders, backup and import plugins) have their own maximum file size setting. Check the plugin's settings too.
  • Still stuck? Open a ticket and tell us the value you set and where you're uploading.

Uploading very large files another way

For big files you don't need to push everything through a web form:

  • Videos, backups and large downloads: upload with an FTP program such as FileZilla (FTPS on port 21). FTP isn't affected by PHP's upload limits. Then add the file to WordPress with a media import plugin, or link to it directly.
  • WordPress themes and plugins: extract the ZIP on your computer and upload the folder to wp-content/themes or wp-content/plugins with FTP, or upload the ZIP in File Manager and extract it there.
  • Database imports: phpMyAdmin accepts files up to 50 MB. Compress the .sql file (for example to .sql.gz) or split it. For bigger databases, open a ticket.
  • Moving a whole WordPress site: use WP Toolkit's import tool instead of uploading a huge backup file.

Common questions

Is there a size limit on email attachments too?

Yes, but it's separate. Email attachment limits depend on the mail servers involved, not on these PHP settings. For big files, share a download link instead.

Why does the error still say 2M or 8M?

That value is coming from a setting in your site's folders, often a php.ini, .user.ini or .htaccess line copied from an old host. Choose the domain in MultiPHP INI Editor and apply new values, or look for and remove the old line.

My contact form loses everything when someone attaches a file

The attachment pushed the form over post_max_size. Raise it as above, or set a lower file size limit in the form plugin so visitors get a clear message.

When to open a ticket

Open a ticket if you still get a 413 or upload error after raising the limits. Include the page you're uploading on, the file size, the exact error and the values you set.

Related guides

Still stuck? Open a support ticket and the Instant Access Internet Services team will help.

Ultrafast LiteSpeed hosting from InstantAccess.net: free SSL, free backups, cPanel included, no contracts. Check out our $10/month hosting.
  • 413 request entity too large, 413 payload too large, the uploaded file exceeds the upload_max_filesize directive in p, exceeds the maximum upload size for this site, the link you followed has expired, increase upload size cpanel, upload_max_filesize
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

429 Too Many Requests: What It Means and How to Fix It

A 429 Too Many Requests error means something decided that one visitor, program or website sent...

500 Internal Server Error: What It Means and How to Fix It

A 500 Internal Server Error means the web server hit a problem it couldn't recover from while...

400 Bad Request Error: What It Means and How to Fix It

A 400 Bad Request error means the server received a request it couldn't understand, so it refused...

401 Unauthorized Error: What It Means and How to Fix It

A 401 Unauthorized error means the page you asked for needs a login, and the server didn't...

403 Forbidden Error: What It Means and How to Fix It

A 403 Forbidden error means the server understood the request but refused to show the page....