WordPress image upload http error

If you’re one of the frustrated users who are excited to upgrade to the latest version of WordPress 2.5.x only to be turned-off by the image upload function, then read on.

The new version has great way in handling media upload, it is a redesign from the previous version. It is sleek and simple but because of it’s AJAX implementation, loading seems like a little slow.

Aside from this slow loading issue, I can’t seem to upload a single image. I tried several times and still the same, failed to upload. No issue with images hosted somewhere else, it’s just when trying to upload an image that this issue occur with the following message:

I just found that this has something to do with Apache’s mod_security.

Mod_security is a module for your Apache server. You can think of mod_security as a firewall for your Apache. It works as a intrusion detection system, and helps to shields you from a number of different attacks, such as SQL injection attacks, cross-site scripting and other nasties.

The problem with disabling mod_security is that you make it easier for hackers to compromise your system. However if you use a .htaccess file the security risk is limited, as you are only disabling mod_security for async-upload.php

Here’s how to correct it:

  1. Connect to your server using FTP client, CPanel or or shell terminal and navigate to the WordPress root folder. This is usually located in /home/userID/public_html or sub-folders below it.
  2. Find .htaccess and edit it. If there isnt any .htaccess file, create one.
  3. Editing the file depends on your text editor. Insert the following at the bottom of .htaccess:
  4. <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

  5. Save the file. You should be able to upload now..


UPDATE:

After going through the above procedure, hacking WP to get the media upload working. Some kind soul managed to create a WP plugin that fixed the issue. It’s not a 100% solution though as users are still reporting the same problem after installing this plugin. Get it here:

This is an update for those using the 2.6.x version that are still experiencing this issue:

  1. Login to your WordPress blog as an admin
  2. Go to “Settings”
  3. Click the menu-tap “Miscellaneous”
  4. Change “Store uploads in this folder” settings from “wp-content” to “wp-content/uploads
  5. Click save and you’re all done!

17,881 Comments

  1. Sidesync App APK

    I have read so many posts concerning the blogger
    lovers but this article is actually a good post, keep it up.

    Reply
  2. call girls London

    Oh my goodness! Incredible article dude! Thank you,
    However I am going through problems with your RSS. I don’t know why I can’t subscribe to it.
    Is there anyone else having identical RSS issues?
    Anybody who knows the solution will you kindly respond?
    Thanks!!

    Reply
  3. escort working girls

    If you are going for finest contents like
    I do, only pay a quick visit this site daily since it presents feature
    contents, thanks

    Reply
  4. http://gnssgpssystems.net

    What’s up, I wish for to subscribe for this weblog to get most
    up-to-date updates, therefore where can i do it please
    assist.

    Reply
  5. implant dentar

    Incredible! This blog looks exactly like my old one!
    It’s on a totally different topic but it has pretty much the same layout and design. Great choice of colors!

    Reply
  6. emergency plumber annapolis maryland

    Nice blog here! Also your site loads up fast!
    What host are you using? Can I get your affiliate
    link to your host? I wish my web site loaded up as quickly
    as yours lol

    Reply
  7. photo into painting

    Hi my friend! I want to say that this post is amazing, great written and include almost
    all important infos. I would like to see extra posts like this .

    Reply
  8. cheapest escorts London

    Hi there, just became aware of your blog through Google, and found that it is
    really informative. I’m gonna watch out for brussels.
    I will be grateful if you continue this in future. Many people
    will be benefited from your writing. Cheers!

    Reply
  9. table du 11

    I am looking forward to welcome you again soon.

    Reply
  10. Kartra Review

    Content is the fundamental foreign money for advertising automation.

    Reply
  11. Xavier

    It’s a p?t you don’t have a donate button! I’d definitely donte to th?s excellent blog!
    I guess for no? i’ll settle for bookmarking and ad??ng your RSS
    feed to my Google account. I look forward to fr?sh updates andd
    will share th?s blog with my Facebook group. Talk soon! https://zonareadymix.com/

    Reply
  12. videos for teens

    I relish, lead to I discovered exactly what I was having a look for.

    You’ve ended my 4 day lengthy hunt! God Bless you man. Have a great
    day. Bye

    Reply
  13. vimax

    W?at i ?o not real?ze is actually how you’re now
    not ?eally much o?e neatly-appreciated than you might be right no?.
    You are v??y intell?gent. You know therefore
    ?onssiderably in relation to this matter, made m? personally consider itt from s? many numerous angles.
    Its like men and omen don’t seem to be invol?ed except
    it’s one thing to do ?ith Gi?l gaga! Your own stuffs excellent.
    Al? the time m?intain it up! http://vimaxasli.top/

    Reply
  14. ATX1230+

    Wow, marvelous blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your website is magnificent, as
    well as the content!

    Reply
  15. Dog Grooming App

    It is the best time to make some plans for the future and it is time to be happy.
    I have read this post and if I could I wish to suggest you few interesting things or
    tips. Maybe you can write next articles referring to
    this article. I want to read more things about it!

    Reply
  16. cheap mlb jerseys

    This design is steller! You definitely know how to keep a reader entertained.

    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!)
    Excellent job. I really loved what you had to say, and more
    than that, how you presented it. Too cool!

    cheap mlb jerseyshttps://www.makeacustom.com/wp-content/uploads/iphone-case.html

    Reply
  17. gnssgpssystems.net

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a comment is added I get several e-mails
    with the same comment. Is there any way you can remove me from that service?
    Cheers!

    Reply
  18. cat spraying no more

    Hi, i think t?at i saw you visited my site ??s i c?me to
    “return the favor”.I aam attempting to fin things to improve my
    ?ebsite!I suppose ?ts ok to use a few ?f your ideas!! http://catsprayingnomore-review.com/

    Reply
  19. nulled wordpress magazine themes 2015

    Wonderful lens!! I am playing with and studying Joomla.

    Reply
  20. Trimble MS990 Spec Sheet

    Aw, this was an incredibly good post. Spending some time and actual effort to make a top notch article… but what can I say… I procrastinate
    a lot and don’t manage to get anything done.

    Reply
  21. Sommer

    Pretty! This has been an extremely wonderful article.
    Thanks for providing this info.

    Reply
  22. Hello! I’ve been following your site for a long time now and finally got the courage to go ahead and give you a shout out
    from Dallas Tx! Just wanted to say keep up the
    fantastic work!

    Reply
  23. realizador de cinema

    You’re so cool! I don’t believe I have read
    through a single thing like this before. So wonderful to find someone with genuine thoughts on this topic.

    Really.. thanks for starting this up. This website is something that is required on the internet,
    someone with a bit of originality!

    Reply
  24. Website

    Greetings from California! I’m bored to death at work so I decided to check out your blog on my iphone during lunch break.
    I enjoy the info you present here and can’t wait to take a look when I get home.
    I’m amazed at how fast your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyhow, good blog!

    Reply
  25. One day cruise

    I don’t even know how I stopped up right here, however I thought this publish was once great.
    I do not recognize who you are but definitely
    you are going to a famous blogger if you happen to aren’t already.
    Cheers!

    Reply
  26. cara daftar sbobet
  27. bandarq

    Thanks , I’ve just been looking for info about this topic for a
    while and yours is the greatest I have found out till now.

    But, what concerning the bottom line? Are you sure
    in regards to the source?

    Reply
  28. This post is in fact a pleasant one it helps new the
    web people, who are wishing for blogging.

    Reply
  29. revouchers

    Wonderful web site. Lots of useful info here.
    I’m sending it to a few pals ans additionally sharing in delicious.

    And obviously, thank you in your sweat!

    Reply
  30. daftar sbobet

    H??dy! This post couldn’t be wr?tten any
    better! Reading this post reminds me of my previous room mate!
    He always kept chatting ablut th?s. I will fo?ward this page to
    him. Pretty sure he will ?ave a goo? read. ?hanks forr sh?ring! http://ajudeojoaozinho.com.br/?option=com_k2&view=itemlist&task=user&id=321360

    Reply
  31. porn movie

    Helpful tips, Thanks.|

    Reply
  32. coroana dentara

    Hey there! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no
    data backup. Do you have any solutions to stop hackers?

    Reply
  33. escort London

    Useful info. Fortunate me I found your site by chance, and I’m stunned why this coincidence
    did not happened in advance! I bookmarked it.

    Reply
  34. ????? ???

    I’m truly enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more enjoyable
    for me to come here and visit more often. Did you hire out a designer to create your theme?
    Exceptional work!

    Reply
  35. migraine medications

    ?o you have a spam problem on this b?og; I also
    am ? blogge?, and I was w?ndering your situation; wwe have created some nice
    proc?dures and we are looking to trade methods
    wth other folks, please shoot m? an e-mail if interested.

    Reply
  36. music video youtuber influencer

    Asking questions are truly fastidious thing if you
    are not understanding anything totally, but this
    piece of writing offers fastidious understanding
    even.

    Reply
  37. porn movie

    Good write ups, Many thanks.|

    Reply
  38. turbotax 2016 release date

    We mechanically switch your info to TurboTax State.

    Reply
  39. London escort agencies

    I am now not certain the place you are getting your information,
    however great topic. I needs to spend some time
    learning more or understanding more. Thank you for wonderful information I used to be in search of this info for my mission.

    Reply
  40. Th?ough t?e nerves, t?e brain will feel th? pain and temperature, control and operatin of automated tasks
    includikng digestion. ?hatever ?t t?kes ?s ?t possib?e to
    cr?ate a simi?ar belief that ?ou too can live ? strong life ?ith diabetes.

    Typically, wit? diabetes type 2, thee body ?ti?l produce
    insulin ?ut cells a?e unsble t? u?e it.

    Reply
  41. domino qiu qiu

    Hi friends, good article and good arguments commented here, I am really enjoying by these.

    Reply
  42. city escort girls

    Good post. I learn something totally new and challenging on websites I stumbleupon everyday.
    It will always be helpful to read content from other authors and practice something from other sites.

    Reply
  43. Berkel Milano

    Hey! Quick question that’s entirely off topic. Do you know how to make
    your site mobile friendly? My weblog looks weird
    when browsing from my apple iphone. I’m trying to find a theme or
    plugin that might be able to fix this problem.
    If you have any recommendations, please share. With thanks!

    Reply
  44. 855domino

    Hi to all, it’s in fact a pleasant for me to pay
    a visit this site, it consists of priceless Information.

    Reply
  45. tree service ri

    Christmas trees require particular attention.

    Reply
  46. Cliff

    Wow, superb blog layout! How long have you been blogging for?

    you make blogging look easy. The overall look of your website is excellent, let alone
    the content!

    Reply
  47. domino indoplay

    It is really a great and useful piece of info. I’m happy that you just shared
    this useful information with us. Please keep us up to date like this.
    Thanks for sharing.

    Reply
  48. Targeted Instagram Followers

    Heya! I just wanted to ask if you ever have any issues with hackers?
    My last blog (wordpress) was hacked and I ended up losing a
    few months of hard work due to no data backup. Do you have any solutions to
    protect against hackers?

    Reply
  49. auto insurance fund

    car insurance quotes allstate
    auto insurance quotes georgia
    auto insurance quotes georgia
    cheap car insurance calculator

    Reply
  50. palais royal restaurant

    I am looking forward to welcome you again soon.

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *