Categories

Featured templates

WordPress. How to increase maximum upload size

Celine Jade April 1, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial will show you how to increase the maximum upload size in php.ini file of any WordPress installation.

WordPress. How to increase maximum upload size

The error like File_”name” has failed to upload due to an error – This file exceeds the maximum upload size for this site is one the most common errors that occur in WordPress and other PHP-based programs that use the php.ini for certain settings. You will need to increase the allowed memory in your php.ini file.

The instructions below will show you how to fix the php memory error by adjusting the appropriate sections of your local files. There are 4 ways:

  1. The first way is the following:

    1. Log into your cPanel.

    2. Scroll down to Files section and open the File Manager.

    3. Select public_html root from the available ones.

    4. Locate php.ini file in your root. Click on the file name to edit it with File Manager editors:

      how to increase maximum uplod size.1.1

    5. Change the line in php.ini. If your line shows 32M, try to change it to 128M. Maximum amount of memory a script may consume is 128MB.

    6. Click the Save Changes button to save your changes:

      how to increase maximum upload size.1.2

  2. If you don’t have access to php.ini, try adding this to .htaccess file:

    php_value memory_limit 64M

    how to increase maximum upload size.2.1

    how to increase maximum upload size.2.2

  3. If you again don’t have access to php.ini, the third way is to add this line to your wp-config.php file:

    	# Increasing memory allocated to PHP 
    	define('WP_MEMORY_LIMIT', '64M');
    

    how to increase maximum upload size.3.1

    how to increase maximum upload size.3.2

  4. The forth and the last way out is creating your own php.ini file with the following line inserted and adding it to wp-admin folder:

      memory_limit = 128M
    

    how to increase maximum upload size.4.1

    how to increase  maximum upload size.4.2

    how to increase maximum upload size.4.3

Please remember that maximum uploads size settings depend, in most cases, on your server. Therefore, if none of the remedies presented in our tutorial helps, feel free to contact your hosting provider.

Feel free to check the detailed video tutorial below:

WordPress. How to increase maximum upload size

Buy Wordpress Themes
This entry was posted in WordPress Tutorials and tagged maximum, size, upload, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket