Setting Upload Max Size via .htaccess

Here is an example to allow File Uploads upto 2 GB. You may also have to consider Max Execution Time.

PHP4:


<IfModule mod_php4.c>

php_value upload_max_filesize 2G

php_value post_max_size 2G

</IfModule>

PHP5:


<IfModule mod_php5.c>

php_value upload_max_filesize 2G

php_value post_max_size 2G

</IfModule>

This entry was posted in General, PHP and tagged , , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree