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:
| Limit | Default | What 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) | 64M | PHP throws away the whole submission, so the form looks empty. WordPress shows "The link you followed has expired." |
| Web server request limit | 500 MB | A 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
- Log in to cPanel and go to Software > MultiPHP INI Editor.
- On the Basic Mode tab, choose your domain from the menu.
- Set
upload_max_filesizeto a size bigger than your file, for example128Mor256M. - Set
post_max_sizeto the same or a larger value. If it's smaller, it still limits you. - Click Apply.
- 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.inifile 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/themesorwp-content/pluginswith FTP, or upload the ZIP in File Manager and extract it there. - Database imports: phpMyAdmin accepts files up to 50 MB. Compress the
.sqlfile (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
- How to Change PHP Settings (memory_limit, upload_max_filesize)
- How to Connect to Your Website with FileZilla (FTPS)
- How to Upload and Extract a ZIP File in cPanel
- How to Import and Export a Database with phpMyAdmin
- How to Move a WordPress Site from Another Host (WP Toolkit Import)
Still stuck? Open a support ticket and the Instant Access Internet Services team will help.
