As PHP limits maximal file upload into 2 (two) megabytes, sometimes we need to increase the value to upload bigger files.
Editing php.ini is the easiest way, but it is impossible when our scripts are in a shared hosting. The only few choice is by using .htaccess file. It will rewrite php.ini’s configuration.
I’ve tried this method and worked as I expected: Here’s the .htaccess content:
RewriteEngine On
php_value upload_max_filesize 30M
Last words, there’s manything we can do using .htaccess to overide server’s default configuration ^_*
Leave a Reply