Tutorials for web designers and developers
Tutorials for Developers_
Search
Close this search box.
Shania Riaz

Shania Riaz

Shania Riaz is Wordpress Designer at Hfarazm Software. Her expertise includes Wordpress Customization and Bug Fixing. She holds a Software Engineering Degree from The University of Central Punjab, Lahore.
max upload size error in wordpress

Do you Want to fix the error in WordPress maximum upload file size. Then check out this tutorial
WordPress Maximum upload file size ranges from 2MB to 150MB depending on the settings of your web hosting provider is giving by default. This error occurs sometimes when you try to upload or install plugins, themes, and files that are larger than a given size. In order to check your current maximum upload file size:

  1. Go to : Dashboard > Media > Add New
  2. Maximum upload size: 5Mb is your current upload size.

max upload size error in WordPress

There are several methods to increase your maximum upload size.

1. Fix WordPress Maximum Upload File Size Using Plugin

  1. Dashboard > Plugins > Add New > Search plugins.
  2. Write increase upload max filesize in the search.

    increase limit by plugin

  3. Click Install Now and Activate the plugin.

    plugin for increase file max

  4. Go To  Dashboard > Upload Max File Size
  5. Enter the size but in Bytes only ( e.g. 64 Mb = 67,108,864 Bytes )

    upload max file size

  6. Click Save Changes to apply new upload size and check Maximum Upload size again.

 2. WordPress Maximum Upload File Size by Theme Function

  1. Go to: Dashboard > Appearance > Theme Editor/ Editor. 
  2. Choose your theme name and Click select.

    wordpress maximum upload file size

  3. Go to : Theme Functions  > funtions.php 

    exceeds the maximum upload size

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

    Scroll all the down and paste this on a new line.

    increase max upload size wordpress plugin


  5. Click Update to apply new upload size and check Maximum Upload size again.

 3. Using Php.ini

  1. Dashboard > plugins > Add New > Search 
  2. Install & Activate File Manager plugin.
  3. Dashboard > Wp File Manager 
  4. Edit wp-confg.php in the root directory.
  5. Add the following code before /* That’s all, stop editing! Happy blogging. */:
    @ini_set( 'upload_max_size' , '64M' );
    @ini_set( 'post_max_size', '64M');
    @ini_set( 'max_execution_time', '300' );
  6. Click Save & Close to apply new upload size and check Maximum Upload size again.
  7. or
  8. Create/ Edit php.ini in the root directory – if you’re on shared hosting then you’ll not see in php.ini, create a file name php.ini.
  9. Add the following Code
    upload_max_filesize = 64M
    post_max_size = 64
    Mmax_execution_time = 300
  10. post_max_size  should be greater than or equal to upload_max_filesize.
  11. Click Save & Close to apply new upload size and check Maximum Upload size again.

Hope this tutorial is helpful to you, kindly share. Thanks.

 
Having issue? comment below or click here to contact us

Leave a Reply

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