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!

6,260 Comments

  1. Ultra Boost

    Every day sneakers can not provide the help a tennis player
    needs to keep away from damage.

    Reply
  2. tu? kiê?ng tr?ng ba?y gia? re?

    Thanh lý t? giám ??c 2 bu?ng c?a fami v?i giá 3tr/c.

    Reply
  3. limitless box mod

    Thanks for a marvelous posting! I genuinely enjoyed reading it, you’re a great author.I will
    always bookmark your blog and will come back at some point.
    I want to encourage you continue your great job, have a nice morning!

    Reply
  4. fifa 18 gdzie kupi?

    Teraz mo?emy rzuci? okiem na drybling w FIFA 18.

    Reply
  5. zeus.fi-b.unam.mx

    Great delivery. Great arguments. Keep up the great spirit.

    Reply
  6. free classifieds

    Everything is very open with a clear description of the challenges.
    It was definitely informative. Your website is useful.
    Thanks for sharing!

    Reply
  7. escape room rockwall

    I was wondering if you ever considered changing the
    page layout of your website? Its very well written; I
    love what youve got to say. But maybe you could a little more in the way of content so people could connect
    with it better. Youve got an awful lot of text for only
    having one or 2 images. Maybe you could space it
    out better?

    Reply
  8. Minha PáGina Da Web

    Attractive section of content. I just stumbled upon your website and in accession capital to assert that I
    get actually enjoyed account your blog posts.
    Anyway I will be subscribing to your feeds and even I achievement you access consistently quickly. http://www.takshanuk.org/o-que-%C3%A9-achaque-do-baixa-mar-gastroesof%C3%A1gico

    Reply
  9. via

    Every weekend i used to pay a quick visit this site, for the
    reason that i want enjoyment, as this this web site conations actually
    good funny information too. http://Image-Salon.Co.uk/?option=com_k2&view=itemlist&task=user&id=120853

    Reply
  10. free gold

    My brother suggested I may like this blog. He was once entirely right.
    This put up truly made my day. You cann’t believe just how so much time I had spent for this info!
    Thanks!

    Reply
  11. binding love spells

    On the first candle write your name and on the second candle
    write the name of the particular person you love.

    Reply
  12. newport beach plastic surgeon

    Wow, fantastic blog format! How long have you ever been blogging
    for? you make blogging look easy. The overall glance of your site is great, let alone the content!

    Reply
  13. fire extinguisher

    hello!,I like your writing very so much! percentage we communicate
    more about your article on AOL? I need a specialist on this area to solve my problem.
    May be that is you! Having a look ahead to peer you.

    Reply
  14. http://franchisee-dev.Bigbazaardirect.Com/

    Amazing! Its genuinely remarkable post, I have got much clear idea regarding from this piece of writing. http://franchisee-dev.bigbazaardirect.com/content/ioga-%C3%A9-melhor-fim-de-previnir-afli%C3%A7%C3%A3o-nas-canastra

    Reply
  15. najwa?niejsze szamba z betonu

    I was wondering if you ever thought of changing the page layout of your blog?
    Its very well written; I love what youve got to say.

    But maybe you could a little more in the way of content
    so people could connect with it better. Youve got an awful lot of
    text for only having one or 2 pictures. Maybe you could space it out better?

    Reply
  16. handmade clothing

    Right away I am going to do my breakfast, when having
    my breakfast coming again to read other news.

    Reply
  17. producent

    Keep on working, great job!

    Reply
  18. wholesale football jerseys free shipping

    It’s actually very complicated in this full of activity life to listen news on TV, therefore I just use world wide web for that
    reason, and get the newest news.wholesale football jerseys
    free shipping

    Reply
  19. Travis Cavaner^Kick it.~4|Amazon Customer^LOOKS JUST LIKE PICTURE!!! Its the real deal&#44 no tricks&#44 scams&#44 its a cotton T-shirt. Its definitely MENS SIZING so heads up the Medium will fit me for sure&#44 I’m a mom of 2 boys&#44 and I wear Large tops from Old Navy if that helps…..it as true to Picture as you can get….TRUST ME I’m glad I took a chance…..~5|Amazon Customer^Cheap chinese fabric and the sewing didnt match on the right side vs left! Both shirts. Sewing was si bad. . And if you wear an xl&#44 youll need to order a 4x from here. Amazon refunded my money&#44 never heard a response from the china sweat shop&#44 and both shirts are used as wrags to clean floors. True story.~3|Joaquin J Jackson^Great tee shirt and it was actually better than we had hoped for.~5|

    Reply
  20. basketball games

    Keep on writing, great job!

    Reply
  21. link Fun88

    Other gambling online activities may include sports betting, lotteries, horse race betting,
    mobile gambling, and in-play gambling. Now you may bet on the remaining numbers
    without worrying about losing. Let me appreciate this, if I spend $1500 inside
    a poker game and lose my money, am I disobeying the law because I
    am wasting my money.

    Reply
  22. check

    Amazing! Its really awesome paragraph, I have got much clear idea concerning from this
    article.

    Reply
  23. buy sell bitcoin

    When I originally commented I clicked the -Notify me when new feedback are added- checkbox and now every time a remark is added I get 4 emails with the same comment. Is there any method you can take away me from that service? Thanks!

    Reply
  24. Alton

    It’s remarkable designed for me to have a web site, which is useful designed for
    my knowledge. thanks admin

    Reply
  25. Cardboard Boxes

    Hello there, just became alert to your blog through Google, and found that it’s
    truly informative. I am going to watch out
    for brussels. I will be grateful if you continue this in future.
    Many people will be benefited from your writing.
    Cheers!

    Reply
  26. non slip shower tray

    Why viewers still use to read news papers when in this technological world everything is presented on net?

    Reply
  27. sex gay live

    I found your weblog website on google and check just a few of your early posts. Proceed to keep up the excellent operate. I just extra up your RSS feed to my MSN News Reader. Looking for forward to studying extra from you in a while!…

    Reply
  28. www2.thaisp.org

    Every weekend i used to pay a visit this website, because i want
    enjoyment, for the reason that this this web page conations in fact fastidious funny material too.

    Reply
  29. Lelio Vieira Carneiro Junior

    Hi my family member! I want to say that this post is
    amazing, great written and come with approximately all vital infos.
    I’d like to look more posts like this .

    Reply
  30. wyoming registered agent

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

    Reply
  31. telecharger dakar bamako gratuit

    hello there and thank you for your info – I have certainly picked up something new from right
    here. I did however expertise a few technical issues using
    this site, since I experienced to reload the web site a lot of times previous to I could get it
    to load correctly. I had been wondering if your web
    host is OK? Not that I am complaining, but slow loading instances times will sometimes affect your placement in google and could damage your high-quality score if
    ads and marketing with Adwords. Well I am adding this RSS to my e-mail and can look out for much more of your respective exciting content.

    Ensure that you update this again very soon.

    Reply
  32. portugaltech.net

    I am actually happy to read this website posts which includes plenty of useful information, thanks for providing these
    information.

    Reply
  33. Self Storage Units and Facilities in Ridgewood

    Way cool! Some extremely valid points! I appreciate you penning this write-up and
    also the rest of the website is very good.

    Reply
  34. prezent na urodziny dla przyjació?ki

    Odwied? nasz spis i odkryj wi?cej pomys?ów na prezenty na Walentynki dla niego Je?li odrzuci? znajdziesz tego,
    czego wyszukujesz, napisz do nas!

    Reply
  35. fifa 18 cena

    Karta Ronaldo Nazario do wypo?yczenia w 5 meczów.

    Reply
  36. www.lamejordespedida.com

    Excellent way of describing, and pleasant paragraph to
    get facts on the topic of my presentation subject matter, which
    i am going to convey in university.

    Reply
  37. minecraft apk

    That’s why they see no issue in staying unproductive or even with
    stealing from you. For example, you maybe the boss of
    a company and suspect your employee is abusing his or her phone privileges.
    By reading their text messages, you can find if your child has a problem with drugs, anorexia,
    bulimia, alcoholism, or unwanted pregnancy.

    Reply
  38. http://legalpotdispensaries.com/

    I am curious to find out what blog system you happen to be using?

    I’m experiencing some small security issues with my latest blog and I would like to
    find something more risk-free. Do you have any suggestions?

    Reply
  39. top newport beach plastic surgeon

    I’m not sure exactly why but this weblog is loading extremely slow for
    me. Is anyone else having this problem or is it a problem on my end?
    I’ll check back later and see if the problem still exists.

    Reply
  40. make money fast gta 5 online

    An engagement ring ne?ds to be w??t you are comfortable with, after all, it is tthe r?lationship t?at’s necess?ry right here, not
    what you might ?fford to purchase.

    Reply
  41. very good publish, i certainly love this website, carry on it

    Reply
  42. daftar togel malam ini

    I know this web site offers quality depending content
    and other stuff, is there any other site which provides such data in quality?

    Reply
  43. Winfred

    I used to be able to find good advice from your
    articles.

    Reply
  44. make money online fast and free no scams 2016

    Aesth?tically, ?ez?l set engagement ?ings an engagement ring gejs
    board has a clean and strong.

    Reply
  45. pornord.com

    Superb, what a weblog it is! This web site gives valuable facts to us,
    keep it up.

    Reply
  46. golf club

    Hi there, You’ve done an incredible job.
    I’ll certainly digg it and personally suggest to my friends.
    I’m confident they will be benefited from this website.

    Reply
  47. last day on earth hack tool

    Awesome article.

    Reply
  48. how long does extenze liquid take to kick In

    Howdy! I know this is kinda off topic but I’d figured I’d ask.

    Would you be interested in trading links or maybe guest authoring a
    blog post or vice-versa? My website goes over a lot of the same subjects as yours and
    I believe we could greatly benefit from each other. If you might be interested feel free to send me an email.
    I look forward to hearing from you! Wonderful blog by the way!

    Reply
  49. draftkings promo code

    I just couldn’t go away your site prior to suggesting that I actually enjoyed the standard info a person provide for your visitors?
    Is going to be again often in order to check out new posts

    Reply
  50. TrackDoll^Fits my 7 month old perfect&#44 with room to stretch 🙂 Super cute~5|Jared Soileau^I love this hat!!! It has lasted throughout the winter & it covers my son’s ears so I don’t worry about him getting an ear infection from being out in the cold. It washes easily & goes with everything. And he’s so stinking cute in it.~5|Latesha^Its an OK hat. Its a little smaller than I thought&#44 and the ear flaps are very thin.~4|Mackenzie Harvey^I ordered this hat for my daughter’s Paul Bunyan Halloween costume and it was exactly what I was looking for. It’s a cheap hat that fit the budget for what I wanted to spend on the costume&#44 and I was actually shocked at the quality when I received it. It’s pretty thick and warm which was great for our Alaskan October. I expected her to wear it for Halloween and then be done with it&#44 but she actually asks to wear it pretty frequently.~5|Maher Al Mowalad^v.good~5|V Dizzle^Bought this for my nephew who was 6 months at the time & it fit a little big. Went to the snow when he was 8 months and it fit perfectly. No fuss&#44 he loves chewing on the strings. The ear extensions are great for the breezy/cold nights and my sister washes that thing all the time without issue of the shape/fit changing. Writing this review on my own merit.~5|Christie Vega^Loved this beenie!for my son perfectly&#44 even fit me&#44 lol&#44 and its a soft material&#44 super warm~5|Shirley^I wanted a hat that covered my granddaughter’s ears and stayed on her head! This hat does just that! Love the little ear flaps – they keep her nice and warm in this cold&#44 windy weather that we’ve been having in Wisconsin. We go for a walk every day unless its raining so she needed a good hat. The hoods on children’s jackets are useless – blow right off their heads as soon as the wind hits them! This hat stays put!~5|Amazon Customer^Fits perfect for my little ones tiny head.~5|Summer Syl^I went to many stores trying to find an \”old fashioned\” toddler hat that tied under the chin. They are just about impossible to find&#44 especially for a boy. My grandson is 13 month old. This hat is just what I wanted and it fits perfectly. The only reason I didn’t give 5 stars is because the knit tie started to unravel. All I did was tie a small know in the end and it will be fine now.Different colors are mentioned in the description but only found white and black for sale on Amazon.~4|

    Reply

Leave a Comment

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