posted: May 26 2009

2mb upload limit in .htaccess or php.ini

man i keep forgetting to change the upload limit on my files, I will place it here to make sure i never lose it.
place in your .htaccess file in your root dir of your web root. if you don’t have one follow the below instructions to create a .htaccess file

# bump up upload limit for uploading files
php_value upload_max_filesize 30M
php_value post_max_size 30M

in your root dir

touch .htaccess
nano .htaccess

#paste the contents. Ctrl-o Ctrl-x

Your Ad Here



Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes