How to fix Maximum File Upload Size Issue in WordPress!

While uploading something on WordPress, sometimes low file upload size limit can stop you from uploading files through media uploader, or install plugins and themes. If you are facing this problem and want to increase the maximum file upload size in WordPress, you have to follow some steps! On this blog, we will discuss about how you can fix “Maximum File Upload Size” issue in WordPress!

You can follow 3 easy tricks to fix this issue. Those 3 tricks are given below. Now let’s talk about how can you check Your Maximum File Upload Size Limit in WordPress:

WordPress will automatically show the maximum file upload size limit when you are uploading images or media. To check the maximum file upload size limit, you can simply go to Media » Add New page and you will see the maximum file upload size limit for your WordPress site.

Now talk about the 3 tricks to fix maximum file upload size issue!

1. htaccess Method

You can increase the maximum upload size in WordPress by simply editing the .htaccess file! Just edit the .htaccess file in your WordPress site’s root folder and add the following code:

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

Please regard in mind that, if you are on a shared hosting package, then these techniques may not work. So if you are on a shared hosting package then you have to contact your web hosting provider to increase the limit for you.

2. Create or Edit an existing PHP.INI file

For this method you will need to access your WordPress site’s root folder by using FTP or File Manager app on your hosting account’s cPanel dashboard. But if you are on a shared host, then you will not see a php.ini file in your directory. If this happens, then you have to create a file called php.ini and upload it in the root folder. Then on that file, add the following code:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

We hope this method will work because it is reported to work for many users. Please note that if 64 doesn’t work, then you can try 10MB.

3. Theme Functions File

This trick is very easy. Just adding the following code in theme’s functions.php file, you can increase the upload size:

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

On this blog, we have tried to give you the best ideas about how can we fix Maximum File Upload Size Issue in WordPress. We hope you have liked this blog. If you have liked this blog please feel free to share it with your dearest ones 🙂

Want to Share this Article?
Quick Chat