search

Increase WordPress Upload Max File Size

WordPress limits the file size you can upload through the Media Library. The limit is set by PHP settings on the server. Here are three ways to increase it. For more on troubleshooting image upload errors.

Option 1 – .htaccess file:

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

Option 2 – wp-config.php file:

@ini_set( 'upload_max_filesize', '64M' );
@ini_set( 'post_max_size', '64M' );
@ini_set( 'max_execution_time', '300' );

Option 3 – php.ini file:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Replace 64M with your desired size.

Join the Discussion
0 Comments  ]

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!

Savvy WordPress Development official logo