Increase File Upload Size in PHP using .htaccess

Sometime you may require to upload larger files on the server and you will notice that you are not allowed to upload files that are more than 2MB. This limitation is placed to conserve the server resources, however you can easily modify this setting to allow upload of larger files.

To make the change, locate the .htaccess file on the server and add the following line to it:

php_value upload_max_filesize 20M
php_value post_max_size 20M

The above lines should allow you to upload files up to 20Mb. You can edit the settings to suit your needs.

As always you can always contact us in case you are facing any issues.

Need php hosting for your wordpress blog? You can see our packages here.