How to increase the upload limit on WordPress using htaccess

As an upload limit in the php.ini we had 2 MB, so we had problems in uploading bigger attachments. Since the admin didn’t want to change the global limit, we made the limit larger via the .htaccess file.

Just add this:

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

and now the limit is 64 MB, much better.

Like our content? Sign up to our newsletter to keep in touch.
We'll never send spam, your data will be treated according to our privacy policy

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.