How to increase WordPress Upload File size limit

Oct 4, 2018 2:57 pm
by Alex

The easiest way is to add the following code into your theme function.php file.
add the following lines
[php]
@ini_set(‘upload_max_size’,’128M’);
@ini_set(‘post_max_size’,’128M’);
@ini_set(‘max_execution_time’,’300′);
[/php]

If your hosting allow, you can edit the php.ini file
add the following lines
[php]
upload_max_filesize=128M
post_max_size=128M
max_execution_time=300
[/php]

Or editing the .htaccess file on your hosting root directory
add the following lines
[php]
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300
php_value max_input_time 300
[/php]

Or you can try this plugin – Increase Max Upload Filesize