Increasing WordPress 2MB Upload Limit

A default WP install is limited to 2MB file uploads. File upload behaviour of PHP is controlled by the php.ini file. We can edit the .htaccess file to insert variables into our php.ini at runtime.

When WP told me ‘Max upload file size: 2MB’, I set:

php_value upload_max_filesize 64M

Then WP told me ‘Max upload file size: 8MB’, so I set:

php_value post_max_size 64M

Now WP tells me ‘Max upload file size: 64MB’.

Job’s a goodun!

Leave a Reply

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