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.

Leave a Reply