How to increase upload_max_filesize

120 views Apr 26, 2016 Apr 26, 2016 faq 0

Edit in php.ini file

If you have access to the PHP.ini file you can directly increase the PHP Memory Limit. If you have access the php.ini file, find upload_max_filesize and increase its limit as upload_max_filesize=32M

Some shared hosting servers would not give you access to the PHP.ini file. But some servers allow you to create a duplicate PHP.ini in your respective site directories which data/values will override the default php.ini values. To do that you just need to create a file with the name ‘php.ini’ in the directory in root directory. In that php.ini file write the following code:

upload_max_filesize = 10M

Increase max_file_size in wp-config.php

Open wp-config.php file in root directory. Paste the following line in that file

define ('upload_max_filesize', '32M');


Increase memory limit in .htaccess file

WordPress create a .htaccess file when permalink set.  Paste the following code at the very bottom in .htaccess file

php_value upload_max_filesize 32M

If these solution is not working talk to your host provider  enable from php ini file.

Was this helpful?