Increase the Maximum Upload File Size in WordPress

There are many problems with file size in WordPress. If you want to increase the wordpress maximum upload file size. However, you are in the right place. Here we will learn how to increase wordpress maximum upload file size and other file sizes.

What are the reasons to increase the wordpress maximum upload file size?

  • If you install a theme larger than the specified size.
  • If you install plugins larger than the specified size.
  • Time of wordpress demo data import.
  • When uploading large media files.

That’s why We will increase the wordpress maximum upload file size.

How do I know the current maximum upload file size?

To find out, first we need to go to the WordPress Dashboard. Then, Media and add new, this page specifies the current upload maximum file size. Which is shown through the screenshot below. Moreover, this plugin Wp-ServerInfo can know all the information of the server including the file size. If you do not know, how to install plugin then read this article.

We can increase the wordpress maximum upload file size through 3 different steps.

  1. htaccess Method.
  2. Theme Editor.
  3. Create or Edit an existing PHP.INI file

1. htaccess Method.

At first go to your root folder via using FTP or Cpanel Via “yourdomain.com/cpanel” ==>> Then Login Your Cpanel ==>> File Manager ==>> Public_html ==>> Settings ==>> Show Hidden File ==>> Save ==> .htaccess =>> Then The Flowing Code and Save Change.

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

However, you can change the size value as needed.

2. Theme Editor.

At first go your wordpress dashboard ==>> Appearance ==>> Theme Editor ==>> Functions.php ==>> Then The Flowing Code and Update File.

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

However, you can change the size value as needed.

3. Create or Edit an existing PHP.INI file

At first go to your root folder via using FTP or Cpanel Via “yourdomain.com/cpanel” ==>> File manager ==>> php.ini or create ” php.ini ” ==>> Then The Flowing Code and Save Change.

upload_max_filesize = 25M
post_max_size = 13M
memory_limit = 15M

However, you can change the size value as needed.

However, in some cases these methods are not effective. This is a problem for most shared hosting. In this case, if you want to change the WordPress maximum upload file size. However, contact the hosting provider. Thank you so much for being with us for so long.

Leave a Reply

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