Did you just encounter the exceeded the max upload file size error while trying to install a new theme? Then this tutorial will help you increase upload file size limit in WordPress easily. Many users face this hurdle when they try to integrate a new theme or a plugin into their interface. This roadblock appears because there is a default limit defined for the files being uploaded by users. This can be quite troublesome for new users, especially those who have just converted an HTML site to WordPress theme or migrated from other formats. In this guide, we are providing 3 easy methods to increase the limit through a plugin. These will be helpful for website owners using dedicated hosting service plans. Those using shared hosting will have to contact their service provider to raise their limit.

Why Does The Error Occur?

A cap on the upload file size has been included for security and efficiency. Hosting servers need to handle multiple applications at once. A fixed size limit is specified for all elements so that resources do not get exhausted. When the code of an item like a theme or a plugin surpasses the specified limit, an error message is displayed communicating that the maximum point has been reached.
How To Resolve The Issue?

The issue can be resolved easily by the following two methods:

1. Modifying The PHP.ini File

All applications that require PHP are handled by a default configuration file called PHP.ini. This file also defines variables like file timeouts and upload sizes. You will need to modify this file in order to raise the limit of your installation. This can be done by connecting to your web site's database through an FTP client. However, using a plugin will be easier for people who do not possess in-depth technical knowledge.

We will use the WP File Manager plugin to edit the file. Install the tool by going to the “Plugins > Add new” section in your admin dashboard. Activate the solution and use it to open your root folder. You can locate the file easily there. In case, it does not exist, you will have to create it. After opening or creating the file start the modification process by right-clicking on it. Select the “Edit file” option and enter the following value:

upload_max_filesize = 128M

You can also define more setting options like:

post_max_size 128M
max_execution_time 300
memory_limit = 3000M

Save the changes and close the file. Try reuploading your theme now.

2. Modifying The .htaccess File

Another way to increase upload file size limit in WordPress is by modifying the .htaccess file. This vital configuration file is located in the root folder and is primarily used for managing permalinks. The period in its name indicates that it is a hidden file. In case you access the root directory through an FTP client, you will have to enable the client’s setting to show hidden files. Only then will you be able to view this file. It is powerful enough to override the server’s settings.

We will manipulate the file to boost the upload limit of our website. The same WP File Manager plugin which was used in the previous method will be employed here. Access the central directory of your interface through the solution. Locate the file in the list and right click on it. Choose the “Edit file” option and in the screen which opens paste the following code:

php_value upload_max_filesize 1000M

Press the “Save” tab and reload your theme or plugin.


These are simple ways to increase upload file size limit in WordPress. Webmasters can use these techniques to raise the limit and add a new theme or extend the functionality of their interface effortlessly.

Author's Bio: 

Brandon Graves is a Wordpress developer and digital marketer at HireWpGeeks- A leading company for converting PSD to WordPress Theme in the USA