How to fix WordPress 2.5 image upload issue

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


Notice: js_escape is deprecated since version 2.8! Use esc_js() instead. in /var/www/techsnack/public_html/wp-includes/functions.php on line 3201

Notice: js_escape is deprecated since version 2.8! Use esc_js() instead. in /var/www/techsnack/public_html/wp-includes/functions.php on line 3201

Notice: js_escape is deprecated since version 2.8! Use esc_js() instead. in /var/www/techsnack/public_html/wp-includes/functions.php on line 3201

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

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

  • Wing Loon

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

  • 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?

  • Wing Loon

    I host my images in, and (now known as, :D

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


    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.

  • Dickey 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…

  • claudius

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


    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.

  • Host My Pics

    Save on bandwidth costs. Upload pics, movies here.

  • 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

  • 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