How to Increase Maximum Upload File Size in WordPress (100% Working)

How to increase maximum upload file size in WordPress? If you are facing issues while uploading any file to WordPress and it showing you the max upload size that is not enough for you. Basically its depend on hosts also many hosts keep the low limit. Generally, it can be 2mb or 5mb sometimes.

How to Increase Maximum Upload File Size in WordPress

But do not worry you came to the right place. I am sharing the 3 simple ways to fix this issue in no time. I am 100% sure that one of these steps will work for you.

Increase the maximum upload file size in WordPress (3 ways)

How to Increase Maximum Upload File Size in WordPress

1.Using the .htaccess file

The .htaccess is a file that created automatically when you install WordPress. It is extremely important file, you can allow a specific instruction to your host using .htaccess file.

How to access the .htaccess file?

Usually, the .htaccess file is hidden because it is a very important file, WordPress wants to protect it from any potential loss like mistakable deleted.

In order to access this file you have to log in into your hosting C-Panel and after entering into c panel, go to File Manager under file manager navigate Public_html.

As we know .htaccess file is hidden by default. So for making it visible, you have to find the Setting button that generally appears at the top right corner in the file manager. Once you click on setting a small window pops out, from there select the option Show Hidden Files.

How to access the .htaccess file

Now click back and navigate Public_html and you will see .htaccess file

How to Find the .htaccess File in WordPress?

Wait! you should take backups?

Now you know how to access the .htaccess file but before going to editing step i recommend you to take a full backup as we already know the importance of this file. So for not losing any important setting, you should to take a bekup.

Have you taken the full backup? Great! if you have done, let’s go to the next step now right-click on .htaccess file to edit and paste this given value at the way button before #END WordPress.

php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300

2.Through wp-config.php file

If the previous method has not worked for you don’t worry there is always an alternative. you can use your wp-config.php file for the same.

How to access wp-config.php file in wordpress?

In order to access that file, you need to navigate to your hosting Cpannel>FileManager>public_html then go to wp-config.php and paste this 3 given line.

@ini_set( ‘upload_max_filesize’ , ‘128M’ );
@ini_set( ‘post_max_size’, ‘128M’);
@ini_set( ‘memory_limit’, ‘256M’ );
@ini_set( ‘max_execution_time’, ‘300’ );
@ini_set( ‘max_input_time’, ‘300’ );

3. Increasing maximum upload size using the plugins

Last and the easiest way, if you are not a technical person or want to play it safe you can simply download a WordPress plugin and you will be able to Increase Maximum Upload File Size in WordPress in just a few clicks.

How to Increase Maximum Upload File Size with plugin

Final Word:

Hello guys, in this article we have covered How to Increase Maximum Upload File Size in WordPress. I hope one of these methods has worked for you guys, if you have any question or suggestion please comment below. thank you for reading this post!

Leave a Reply