Increase Maximum Upload Size WordPress – Detailed Guide

Do you want to Increase Maximum Upload Size WordPress limit? Is the low file size limit causing you problems such as upload media error, plugin install error? Don’t worry you are on the right page. We have a detailed guide to fix this issue. Read the article thoroughly and don’t forget to share.

WordPress a very popular and user-friendly CMS. According to W3Techs , WordPress is used by 33.4% of all the websites. Its user-friendly nature lets the user work on it without much technical knowledge.

Even hosting providers nowadays provided one-click WordPress install which is much easier for nontechnical users. But with so much of features and user-friendly nature, there still can be issues with WordPress, most of the issues are common, and solutions are readily available for the same.

The issue we are going to talk about today is widespread and can arise at any time with anyone, and the solution is not much complicated or technical. The topic is How to Increase Maximum Upload File Size WordPress

Maximum Upload File Size Issue

Its a fairly common issue with WordPress. It occurs when you are trying to upload a file greater than the set limit. WordPress has some predefined limits set up for file upload to maintain the balance between speed and reliability.

This issue sometimes doesn’t let you upload media files greater than the limit and can also cause problems when installing plugins and themes. So, If you are facing issues with theme, plugin installation and media upload error, then the first thing to look at is the allowed file size.

How to check Maximum Upload File Size

To Check for the maximum file size limit go through the below steps:

  • Log in to your admin Panel https://site_name/wp-admin
  • Click on Media on the left side panel as per screenshot

wordpress admin panel

  • Click on Add New

wordpress media panel

  • Here you will now see an area to Upload or Drop Files with Maximum upload file size mentioned

wordpress upload media panel

This is the maximum file size that you can upload to your WordPress website — uploading greater file size than this will give you an error.

wordpress upload media error

And while installing plugins, it can give another error if the limit is much lower than the plugin requires.

wordpress plugin install error

So What’s the solution here?

Don’t panic we do have a solution out here on How to increase WordPress upload size.

By adding code to the theme functions file

In some cases, by adding a little chunk of code, you can get rid of this solution. If you are already familiar with WordPress then you are aware of the functions.php file in your theme folder, but in case you are not, then let me show you the steps to find out the one.

 Using FTP

  • Connect your FTP
  • Go to public_html if you have only one website running or if you are running multiple sites then you need to find the folder with your domain name
  • Double click the folder
  • Then go to the public_html folder
  • Then go to the wp-content folder
  • Click on Themes
  • Click on the theme folder of current theme, you can find the current theme through the WordPress admin panel

Find the Current Theme

  • Log Into your WordPress admin panel
  • Hover on to Appearance and click on Themes

wordpress admin panel

  • There you will find your active theme

wordpress theme panel


  • In your theme folder you will find a file functions.php
  • Open the file in the editor of your choice
  • Now scroll down to the end, and at the end of all the written code add the following code:

/*Increase Maximum Upload Size WordPress*/

@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );

/*——-Code End—————–*/

  • After adding this code your new file size should pop up in your media panel, if still now then you can try below methods.


Read Other WordPress help Posts:

Secure you WordPress Website


The PHP.ini File

For this method, you will need to access your WordPress site’s root folder by using FTP or File Manager through your cPanel.

If you are on a shared server, then in some or most cases you will not see a php.ini file in your directory. If it’s not there, then create a new file php.ini and upload it to the root folder and add the following code:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

If you already have a php.ini file then follow the steps:

  • Open the file in the editor
  • Search Maximum allowed size for uploaded files

Increase Maximum Upload Size WordPress

  • In upload_max_filesize replace the already mentioned size with the one you want
  • Save the file and upload it back to the server

By now the file size is changed and if in a case still an issue then we have another option also.

The .htaccess Method

The .htaccess method must be used carefully and should be used as a last resort. You can increase the maximum upload size by modifying the .htaccess file.

The .htaccess file is located in the root directory of your website. Use the following step to modify it:

  • Open the .htaccess file in the editor
  • At the end of the written code add the below code:

#Code to Increase Maximum Upload Size WordPress

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

#Code End

Note: If you are on a shared server you might not be able to access these files or modify it, then you should take help from your hosting providers.


By using the above methods, we hope you already have the solution by now. Just in case these solutions were not enough, then you may talk to your hosting providers for the same.

If you like this article, don’t hesitate to share the same with your friends and family. At some point in time, most of the WordPress users face this issue.

If you have any other valid option, or you say something on the same, then please mention your thoughts in the comment section. We would love to hear from you.

techntoss_admin Written by:


Windows 10 Update is Killing your SSD


How to Safeguard Yourself from Data Breaches in 2020 – Safety Guide

Google Drive Vs Dropbox : The 2020 combat


Megabits VS Megabytes :- The Strip Off


Virtual Reality Definition – The Informative Guide


Google Chrome Tweaks – The 2019 Shortlist


Google SEO factors 2019- The Crucial Watchlist


Artificial Intelligence Definition : An Indepth Overview


Digital Marketing Trends – The 2019 Marketview


301 Redirect VS 302 Redirect – SEO on the stake


Shopify Chat – 6 Best Live Chat Apps to Grow your Business in 2019


Increase Maximum Upload Size WordPress – Detailed Guide

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *