Wordpress 2.5 - php.ini upload_max_filesize
Default is 2mb. To increase, you need to change the file size limit in the php.ini or .htaccess file.
php.ini
Add these lines:
upload_max_filesize = 10M ;
post_max_size = 20M ;
Chances are, you don’t have access to the php.ini file, so you have to edit the .htaccess file.
.htaccess (Example link: http://tchan4.com/blog/.htaccess)
Add these lines:
php_value upload_max_filesize 10M
php_value post_max_size 20M
If you don’t have a .htaccess file, just create one and put it into your blog’s root directory (http://tchan4.com/blog/.htaccess).
‘Post Max’ size is the maximum size of all he files in each posts you make.
‘Max File’ size is the maximum size per file you can upload.
Change the values 10M/20M to what you want, just make sure the ‘post max’ is bigger than ‘max file’.
August 18th, 2008 at 4:24 pm
I cannot thank you enough for putting this response in plain English. I can finally upload my larger files! This has involved a lot of going back and forth between my hosting company and searching the forums. The one thing the hosting co did, which might have also helped (but not without the allowable posting code in place) was that they also added this:
php_value max_execution_time 1000
between the two it finally works. Another tip, if it doesn’t upload with the first wordpress browser, try the second one - that’s what worked for me.
September 22nd, 2008 at 7:38 pm
If I can just echo Katie’s comment, thanks for explaining this clearly. Has saved me so much time and easy to implement for me (.htaccess file).
October 29th, 2008 at 8:02 am
[...] took me to this article which suggested getting around the file size limit by editing the .htaccess file instead. This is a [...]
November 15th, 2008 at 7:58 pm
Thankyou so much, I had issues with 500 errors when i used htaccess. but using the php.ini method (both in the root and in wp-content and wp-admin) has done the trick.
for now anyway!