Error with WordPress 2.5 uploader

When I first upgraded to WordPress 2.5 I was having problems with the flash uploader. I kept getting an “HTTP Error,” and WordPress was telling me to “Try again later.” I searched around the forums and dug through many useless threads until discovering that it could have something to do with mod_security. I then checked my logs, and sure enough, mod_security was the culprit. If you are having trouble with the uploader and you have mod_security installed, don’t turn off mod_security all together as was suggested on the WordPress forums, just put this code into your .htaccess file (all on one line; copy and paste should work):

SetEnvIfNoCase Request_URI wp-admin/async-upload.php$ MODSEC_ENABLE=Off

Voila! You can now upload images.

Be Sociable, Share!

Comments are closed.