Sometimes sever settings do not allow you to upload files more than a fixed limit (usually 2 MB). But, some websites might require allowing files more than this limit. In such cases we need to set some options in httpd.conf configuaretion file. This sometimes is not allowed on shared servers. “.htaccess” file comes to the rescue.
Put the below lines in a plain text file. Upload that to your home directory on your web-server and rename it as “.htaccess”. This would allow an upload of upto 20 MB file sizes.
php_value upload_max_filesize 20M php_value post_max_size 20M php_value max_execution_time 200 php_value max_input_time 200
Enjoy uploading !