By default, Maximum File Upload Size in WordPress varies from 2MB to 150MB according to your provider’s web hosting settings.

To find out what your WordPress site’s current maximum upload size restriction is, go to WP Admin > Media > Add New. As seen in the image, you notice on the bottom the current maximum upload size.

Maximum File Upload Size in WordPress

Method 1. Create or Edit php.ini File

The php.ini file manages fundamental PHP configuration settings, such as the maximum upload size.

Some servers allow you to change the php.ini file using cPanel, which is more convenient than editing it directly.

Login to your cPanel after that search for php. Then, you can select the MultiPHP INI Editor tool like the below image.

Then, you can select the site that you want to edit and adjust the upload_max_filesize directive:

If your host does not provide such a tool, you might attempt directly accessing the file.

Connect to your server’s root folder using FTP or cPanel File Manager (the root folder is the same folder that contains the wp-config.php file):

  • If you see an existing file called php.ini, edit that file.
  • If you don’t see an existing file, create a new file called php.ini.

Then, add the following lines of code:

upload_max_filesize = 32M
post_max_size = 32M
max_execution_time = 300

Method 2. Edit Functions.php File

In some situations, you may not be able to access your.htaccess file or you can change WordPress theme files more conveniently.

By adding the following lines of code to the theme.php functions file, you may simply raise the size limitations.

Remember though, that when changing the theme, the upload size will be returned until you modify the new theme’s functions.php file.

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

Method 3. Update .htaccess file

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

Replace the numbers with the values you require. If your internet connection is sluggish, you may need to raise the maximum execution time and maximum input time settings.

Method 4. Update wp-config.php file

Another way of increasing the upload size in WordPress is to define the size parameter in the wp-config.php file. To do that, access your WordPress root directory and locate a wp-config.php file.

Open the file in any text editor and add the following code.

    @ini_set( 'upload_max_size' , '128M' );
    @ini_set( 'post_max_size', '128M');
    @ini_set( 'memory_limit', '256M' );

Save your changes and it should increase your file upload size.

You may also try this Increase Maximum Upload File Size WordPress Plugin if you want to.

Don’t Miss:

How to Change Your WordPress Login Page URL

How to Create a Private/Password Protected Post in WordPress

If you have any question in your mind feel free to ask.. Thank you