How to fix WordPress 2.5 image upload issue

Apr 4th, 08 | Filed under Blogging, Tutorial, Wordpress | 12 Comments

Advertisement

I had upgrade my blogs to WordPress 2.5, but i found that i can’t upload any image through the new AJAX image uploader. After i search through internet, i found this post, which teach user how to fix this problem.

I believe most of the WordPress 2.5 users will found this problem when try to upload image using the built-in image uploader, unless you use other blogging tools such as Live Writer.

Basically, this problem is due to the mod_security. The new image uploader has been rejected by mod_security. So, you had to modify the .htaccess file to disable the mod_security. This can be done to insert the code below to your .htaccess file:

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

This is just a temporary fix, i hope WordPress team can solve this issue as fast as possible. WordPress users, please upgrade once WordPress team release new version to fix this problem.

Like this article? Why not subscribe to TechSnack to get daily updates of news and inetresting articles about tech, tips and computers.
  • http://www.truebluetitan.com Rob Schultz

    Thanks for the tip. I’ve been putting off upgrading for the past couple of days, but think that I’ll be giving it a try this weekend.

  • http://wingloon.com Wing Loon

    I didn’t use WordPress 2.5 image upload but thanks for this info, :)

  • http://www.techsnack.net Dickey

    @Rob Schultz: it is better to upgrade your WordPress to the latest version, as it add more features and security.

    @Wing Loon: May i know how you upload your image? Or you host your image at other website?

  • http://wingloon.com Wing Loon

    I host my images in photobucket.com, divshare.com and xmgimage.com (now known as 72photos.com), :D

  • Pingback: Samanunga » Blog Archive » Design tools()

  • http://www.mydeskblog.com MyDeskBlog.com

    Argh, I just upgraded to 2.5.1 having gave 2.5 a miss. Still, I’m having problems with it’s Ajax image uploader. It crashes my Firefox everytime an image is uploaded.

    I’ll try modifying the .htaccess file but like you said it, WordPress had better fix it soon. I can’t believe one of the most important feature such as image uploading has such a severe bug.

  • http://www.techsnack.net Dickey

    @MyDeskBlog.com: Perhaps you can try other blogging tools such as Windows Live Writer to temporary solve your problem. Hope the WordPress team can solve this problem quickly. Even though i manage to fix this problem by modified the .htaccess file, but after i upgrade my Firefox, seems like the problem still occur, but not frequently…

  • http://pics.ocazional.com claudius

    Cool, nice post, this blog is great.keep the god job!
    Free Image Share !

  • http://www.mydeskblog.com MyDeskBlog.com

    Using WP 2.5.1, uploading images is a lot better with Firefox 3 (Kubuntu Linux OS). It is still slow and unresponsive, but overall the flash media uploader now works for me.

  • http://hostmypics.co.za Host My Pics

    Save on bandwidth costs. Upload pics, movies here.

  • http://thenewspk.com/ Ali

    images cannot upload now……word press version is 2.7
    error is ………The uploaded file could not be moved to /home/thenewsp/public_html/wp-content/uploads/2009/02.
    so what should i do please tell me soon as soon posible

  • http://watchmoviezz.com Coy Marten

    I actually got to this site by doing a search for movies to see Online. Can you make an article on the top movies to stream online thank you