post Category: Uncategorised post postMay 15, 2008

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’.

Horaayy..there are 4 comment(s) for me so far ;)

#1

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.

Katie Ball wrote on August 18, 2008 - 4:24 pm
#2

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).

Sugar Web Design wrote on September 22, 2008 - 7:38 pm
#3

[...] took me to this article which suggested getting around the file size limit by editing the .htaccess file instead. This is a [...]

Surviving a corrupt WordPress database - ManiaRavings wrote on October 29, 2008 - 8:02 am
#4

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!

Ben wrote on November 15, 2008 - 7:58 pm
You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.