WordPress – How to increase media library upload file size limit

This article is about

How to Set Maximum Upload File Size in wordpress:

We can increase upload file size limit in wordpress. Follow the steps to maximize the wordpress media libary upload file size limit. Open .htaccess file and add thse lines in .htaccess

php_value upload_max_filesize 400M
php_value post_max_size 400M
php_value max_execution_time 200
php_value max_input_time 200

You can change values accourding your requiredments.

Now .htaccess will looks like this

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

php_value upload_max_filesize 400M
php_value post_max_size 400M
php_value max_execution_time 200
php_value max_input_time 200

 

Leave a comment

Your email address will not be published. Required fields are marked *