Now you can Increase maximum upload file size in WordPress plugin to any value with one click using this Increase Maximum Upload File Size plugin.

The plugin automatically detects upload limits set by WordPress and by the server/hosting provider and displays them.

You can access plugin’s settings from the main WP admin menu there you can change the maximum upload file size, That’s It Done.

Check out the below screenshot for better understanding.

If you don’t want to use the plugin then there are also some alternative methods as below describe.

1 – Theme Functions.php File

You can find function.php file in the WordPress theme folder, You can just add 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’ );

2 – Htaccess File Method

You can find .htaccess file in the root directory of your site’s WordPress installation folder. You can open it with notepad or any code editor and add the following code to the .htaccess file.

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

3 – Create Or Modify php.ini File

The first step go to your site’s root directory and open or create a php.ini file. If you are using shared hosting, then you will not see a php.ini file in your directory. If you do not see one, then create a file called php.ini and upload it in the root folder. In that file add the following code.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

4 – Modify php.ini File using Cpanel

If you’re using cPanel and your hosting provider provides you this functionality then you can modify the php.ini file via the MultiPHP INI Editor tool. Under the Software section, you can find it, click on MultiPHP INI Editor.

Then in Basic Mode, you can select your home directory from the drop-down menu. Then change the value of “”upload_max_filesize”” attribute 64M or 128M, That’s it Done.

About the author

Full-stack web developer with great knowledge of SEO & Digital Marketing. 7+ years of experience in Web Development.

Leave a Reply