How to Increase the WordPress Maximum Upload File Size
- Category : WordPress
- Posted on : Jun 16, 2019
- Views : 3,688
- By : Icarus M.

If you are reading this post, no doubt you have run into an issue uploading files to your WordPress site and are looking for a quick fix. The all too common “exceeds the maximum upload size for this site” error can be very frustrating. Many hosts keep this limit low by default. So in this post, we will dig into the root of the problem and provide you with some quick ways to resolve this issue and get back to uploading your files.

First of all, why in the world does this happen? Well, it’s important to understand that this is usually not a WordPress issue. In most cases, the WordPress maximum upload file size is a server-level setting which also means that unfortunately, you can’t resolve it from within WordPress.
This limit exists for security and efficiency’s sake. It prevents users from flooding your site with huge video uploads and grinding your servers to a halt. We think that’s fair enough, but nowadays a default upload of 2 or 5 MB (an amount many servers default to) just doesn’t cut it, let’s see how we can go about increasing it.
If you’re curious, the default upload size at Host SEO is 125 MB.
Increasing The WordPress Maximum Upload File Size
There are three basic ways you can go about resolving the WordPress maximum upload file size issue, as well as an alternative option. We’ll start with the two easiest ones, then move on to changing the server settings yourself, as there are a number of options there as well.
- Increase Upload Size Limit in a Multisite Install
- Ask Your Host For Help
- Modify Server Settings
- Utilize the WordPress upload_size_limit Filter
- Alternative Option – Upload Files Via FTP
Increase Upload Size Limit In a Multisite Install
If you are running a multisite installation you may be able to control the upload limit for your sites. Note: This can not circumvent the server-level settings. If the server is set to a limit of 5 MB and you set 10,000 KB (10 MB) in the network settings it will not work. If, however, the server is set to 20 MB and your network settings are set to 1,500 KB you will be able to resolve the issue by increasing the setting up to the 20,000 KB limit. Follow the steps below to increase the max upload size on your Multisite install. If you need to modify the server, skip down to modify server settings.
Step 1
In your WordPress dashboard click into Network Admin and into Settings.

Step 2
Scroll down and double check the “Max upload file size” settings. You can increase this to something higher than the default of 1500 KB (1.5 MB). Then click “Save Changes.”

Ask Your Host For Help
If you are having trouble with uploading files and size limits, one of the fastest solutions is to reach out to your host and ask for help. Many hosting companies have chat support which can help you out quickly in these situations. Increasing an upload limit is a trivial task for a tech support person, and they should be able to do it within a minute.
Modify Server Settings
There are a lot of server settings that affect how uploads are handled in WordPress. Regretfully, many tutorials get this wrong because they change more settings than necessary. According to the PHP Documentation, the three directives that matter are:
- post_max_size
- upload_max_filesize
- memory_limit
The documentation also gives us pretty clear guidelines on how they should be set up:
[post_max_size] sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.
We’ll need to set these three up to accommodate for our file sizes. If the largest file will be about 10 MB, we would recommend setting the upload_max_filesize to 12M (12 MB), the post_max_size to 13M and the memory_limit to 15M. Notice, they use M instead of MB. Uploads can contain a fair bit of text information in addition to the file itself so giving everything some breathing space is a good idea.
Now that we know what to modify, we just need to know how. There are five things you can try. Some of these may not work for you, depending on your server setup.
Option 1 – Change PHP Options in cPanel
If you are running on a host that uses cPanel, you can easily change this from the UI. Under Software click on “Select PHP Version.”

Click on “Switch to PHP Options.”

You can then click on each property and change its value. Then click on “Save.”

Option 2 – Create Or Modify php.ini Files
By default, php.ini files are the ones that govern how your server is set up. Due to restrictions in servers, you may not be able to use php.ini files, which is why the .htaccess method works more consistently, we’ll take a look at that next. To edit your php.ini file, login to your site via FTP or SSH, go to your site’s root directory and open or create a php.ini file.

If the file was already there, search for the three settings and modify them if necessary. If you just created the file, or the settings are nowhere to be found you can paste the code below. You can modify of course the values to meet your needs.
upload_max_filesize = 12M
post_max_size = 13M
memory_limit = 15M
Some shared hosts might also require that you add the suPHP directive in your .htaccess file for the above php.ini file settings to work. To do this, edit your .htaccess file, also located at the root of your site, and add the following code towards the top of the file:
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/yourusername/public_html
</IfModule>Option 3 – Modify php.ini File in cPanel
If you’re using cPanel, modifying the php.ini file can also sometimes be done via the MultiPHP INI Editor tool. Under Software click on “MultiPHP INI Editor.”

Select your home directory (domain root) from the drop-down.