php.ini for virtualhost upload_max_filesize override setting in .htaccess apache file for wordpress mu

ranaweeram, table4five: I don’t know why the htaccess method didn’t work for you…

i’ve put the following line at the begining of the .htaccess file located in the main wordpress directory:

php_value upload_max_filesize 5M

and it’s all good. Before this, i used to get the following error:

The uploaded file exceeds the upload_max_filesize directive in php.ini.

This rule allso applies to all of the wordpress mu users.   The hosting service for this blog is provided by NodBlog.com. They provide a 5MB limit for file size uploads and no disk quota/bandwidth limit for hosting your blog for free.

No related posts.

Tags: ,

2 Responses to “php.ini for virtualhost upload_max_filesize override setting in .htaccess apache file for wordpress mu”

  1. sumodirjo says:

    Thanks, I’m using free web hosting and they limit file upload to 2Mb, hope this setting could save me

  2. Peter says:

    I’ve tried this but still get the error and am unable to upload. Any other suggestions? Do we also need to add post_max_size?

Leave a Reply