Notes: WordPress Tip #6 – Increase the WordPress Maximum Upload File Size

November 23, 2020

Ever think that the WordPress maximum upload file size is small?

How to know the maximum upload file size?

From the dashboard, go to Media > Add New

maximum upload file size

The maximum upload size depends on the server settings, if you want to tweak it, here are a few ways to do it.

functions.php

@ini_set( 'max_execution_time', '300' );
@ini_set( 'upload_max_filesize' , '128M' );
@ini_set( 'post_max_size', '256M');
@ini_set( 'memory_limit', '128M');

php.ini

max_execution_time = 300
upload_max_filesize = 128M
post_max_size = 256M
memory_limit = 128M

.htaccess

php_value max_execution_time 300
php_value upload_max_filesize 128M
php_value post_max_size 256M
php_value memory_limit 128M

wp-config.php

@ini_set( 'max_execution_time', '300' );
@ini_set( 'upload_max_filesize' , '128M' );
@ini_set( 'post_max_size', '256M');
@ini_set( 'memory_limit', '128M');

If you don’t have access to any of those, then add the Increase Maximum Upload File Size plugin.

Increase Maximum Upload File Size

Please take note that the maximum upload size also depends on the server settings, if these do not work, contact your host.

Get In Touch

Email: [email protected]


CAPTCHA image

This helps us prevent spam, thank you.



Categories