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!

9,078 Comments

  1. mastery buff classes

    I on my own (the article writer) have had pair of T54 games where I
    have gotten rid of all 7 foes, but possessed no proficiency logo.

    Reply
  2. www.liveinternet.ru

    A flute masterclass makes it possible for a lot of pupils to
    profit from their excellent teaching compared to they could ever educate one-on-one in their personal centers.

    Reply
  3. jasa beli ebay

    Ever?one loves it when individuals come together and
    ?h?re ideas. G?eat website, ?tick with it! http://barbieriacabamentos.Com.br/?option=com_k2&view=itemlist&task=user&id=273929

    Reply
  4. flower delivery

    I visit daily a few blogs and information sites to read
    content, except this weblog provides feature based writing.

    Reply
  5. Ali

    Exactly what you truly must recognize is actually whether proficiency is a much better stat then permitted’s mention crit
    or even hurry.

    Reply
  6. Ramiro

    Possibly you are actually a lover of Moroccan, Italian, Indian or
    Spanish dishes, or possibly you are actually hoping to strengthen a
    particular skill-set in a masterclass designed to educate you
    the fine art from macaroon cooking or even boost your blade skills
    in meat lessons.

    Reply
  7. dezynsekcja ?ód? insekty

    I visited several blogs but the audio feature for audio songs current at this web page
    is genuinely excellent.

    Reply
  8. hoc tieng duc tren internet

    It’s very effortless to find out any matter on net as compared to textbooks, as I
    found this post at this site.

    Reply
  9. vmessage161

    I read this piece of writing completely regarding the difference of most recent and previous technologies, it’s remarkable article.

    Reply
  10. star wars 8 streaming

    This could be a good way of detecting if any spy app
    is really present on your Android phone or not. They offer features like Two Wash Courses (Gentle & Normal Wash, twin water
    inlets, spin shower, two wash courses (Gentle
    and Normal wash), and wheels for easy mobility in some models.
    Today, I and Bianca have become best friends again.

    Reply
  11. generic risperdal order now uk

    My brother suggested I might like this website. He was entirely
    right. This post actually made my day. You cann’t imagine simply how much time I had spent for this information! Thanks!

    Reply
  12. jasa Ebay Terbaik

    Heya are us?ng ??rdpres? for your blog platform?

    I’m new tt? the blog wrld ?ut I’m trying tto gett ?tfarted and create my
    own. Do you require any html coding kno?ledge to m?ke yo?r own blog?
    Any help would be greatly apprec?ated! http://Naturesfinest.Chefjeff.com/?option=com_k2&view=itemlist&task=user&id=476084

    Reply
  13. Jasa Ebay

    ?hanks foor sharing such a good thought, arti?le is plea?ant, thats why i have read iit fully http://silvashaw.co.za/component/k2/itemlist/user/2424118

    Reply
  14. dezynsekcja ?ywiec insekty

    Excellent, what a web site it is! This blog provides useful data to us,
    keep it up.

    Reply
  15. order now cheapest vantin shop

    Nice post. I learn something totally new and challenging on blogs I stumbleupon on a daily
    basis. It’s always useful to read articles from other authors
    and practice a little something from their websites.

    Reply
  16. Emergency Plumbing services

    First off I want to say awesome blog! I had a quick question which I’d like to ask if
    you do not mind. I was curious to know how you center yourself and clear your head prior to writing.
    I have had difficulty clearing my thoughts in getting
    my thoughts out. I do take pleasure in writing but it just seems like the first
    10 to 15 minutes tend to be lost just trying to figure out how to begin. Any ideas or tips?
    Cheers!

    Reply
  17. bit.ly

    The other day, while I was at work, my cousin stole my apple ipad
    and tested to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views.

    I know this is totally off topic but I had to share it with someone!

    Reply
  18. Click

    What’s up, just wanted to mention, I enjoyed this article.
    It was funny. Keep on posting!

    Reply
  19. movie online

    WOW just what I was looking for. Came here by searching for
    movie

    Reply
  20. scuole tango roma

    I really like your blog.. very nice colors & theme.

    Did you make this website yourself or did you hire someone to do it for you?

    Plz reply as I’m looking to design my own blog and would like to find out where u got this from.
    kudos

    Reply
  21. Click

    If you want to take much from this post then you have to apply these strategies to your won web site.

    Reply
  22. flowers online

    Remarkable things here. I’m very glad to look your post.
    Thank you so much and I’m taking a look forward to contact you.
    Will you kindly drop me a e-mail?

    Reply
  23. dentoplan.gr

    You could definitely see your enthusiasm in the work you write.
    The arena hopes for even more passionate writers like you
    who aren’t afraid to mention how they believe.
    All the time go after your heart.

    Reply
  24. big money

    Hi! This is my first comment here so I just wanted to give a
    quick shout out and tell you I truly enjoy
    reading through your blog posts. Can you suggest any other
    blogs/websites/forums that deal with the same topics? Appreciate it!

    Reply
  25. proserviciossa.com

    A fruta também regula as atividades do coragem.

    Reply
  26. dezynsekcja gazowa insekty

    Thanks for every other excellent article. The
    place else may anyone get that kind of information in such an ideal approach
    of writing? I’ve a presentation subsequent week, and I’m at the
    look for such information.

    Reply
  27. dye Sublimation printing

    My brother suggested I might like this blog. He was totally right.
    This post actually made my day. You cann’t
    imagine simply how much time I had spent for this information! Thanks!

    Reply
  28. We Blog About Travel

    Awesome blog! Do you have any recommendations for aspiring
    writers? I’m planning to start my own website soon but I’m a little lost on everything.
    Would you advise starting with a free platform like WordPress or go
    for a paid option? There are so many choices out there that
    I’m totally overwhelmed .. Any tips? Bless you!

    Reply
  29. jasa beli ebay

    T?is post is inv?luable. Where can I find ouut more? http://www.surplustown.com/index.php/component/k2/itemlist/user/178802

    Reply
  30. star wars 8 full movie online

    With this Blackberry spy software you will not be left in the dark.

    Whichever method you plan to use, you cannot do
    this on your own very easily; you will need some extra equipment.
    By reading their text messages, you can find if your child has a problem with
    drugs, anorexia, bulimia, alcoholism, or unwanted pregnancy.

    Reply
  31. pool overflow drain

    Hello, i feel that ? noti?ed you visite my b?og thuus i came to ?return the choose?.I’m attempting to to fiund
    issues to enh?nce my site!I suppose it? ok to use some of ?our
    concepts!!

    Reply
  32. ???????????

    ????????????????????????????????????????????????????????

    Reply
  33. homepage

    É um vergonha você não tem um botão de doação!
    Eu gostaria certamente doar a este excelente
    blog! Eu palpite pois agora eu vou contentar livro marcação e adicionar o seu RSS
    feed para minha conta do Google. Estou ansioso para novo atualizações e
    vontade compartilhar isto local com meu grupo no Facebook.
    Falar em breve!

    Reply
  34. tablets

    Hi, this weekend is fastidious in support of me,
    since this point in time i am reading this wonderful educational piece of writing here at my
    house.

    Reply
  35. splurgeforless.com

    Helpful info. Fortunate me I found your web site accidentally, and I am surprised why this twist of fate did not happened
    in advance! I bookmarked it.

    Reply
  36. watch movie

    Every weekend i used to go to see this web page, for the reason that i want enjoyment,
    for the reason that this this site conations genuinely
    good funny material too.

    Reply
  37. An outstanding share! I’ve just forwarded this onto a coworker who
    has been conducting a little research on this.

    And he in fact bought me dinner simply because I discovered it for him…
    lol. So let me reword this…. Thank YOU for the meal!! But yeah,
    thanks for spending the time to talk about this matter here on your internet site.

    Reply
  38. velcro

    This actually answered my drawback, thank you!

    Reply
  39. tamper evident tape

    Would you be focused on exchanging links?

    Reply
  40. dezynsekcja tczew insekty

    Great post. I used to be checking continuously this weblog and
    I am inspired! Extremely helpful information specifically the last phase 🙂 I maintain such information a lot.
    I was looking for this certain info for a very long time.
    Thanks and best of luck.

    Reply
  41. magnetic sheet

    Youre so cool! I dont suppose Ive read something like this before. So good to seek out any individual with some authentic ideas on this subject. realy thank you for beginning this up. this web site is something that’s wanted on the net, somebody with a little originality. useful job for bringing one thing new to the internet!

    Reply
  42. Florene

    When someone writes an post he/she retains the plan of a user in his/her mind that
    how a user can know it. So that’s why this article
    is amazing. Thanks!

    Reply
  43. iv steroids

    Abusing steroids could trigger Adrenocortical steroids.

    Reply
  44. cheap xtane gold coast

    Hi there would you mind stating which blog platform
    you’re using? I’m going to start my own blog soon but I’m having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique.
    P.S My apologies for getting off-topic but I had to ask!

    Reply
  45. bubble wrap

    There are certainly a lot of particulars like that to take into consideration. That could be a nice point to carry up. I provide the ideas above as basic inspiration but clearly there are questions just like the one you deliver up the place a very powerful factor can be working in honest good faith. I don?t know if best practices have emerged around issues like that, but I’m positive that your job is clearly recognized as a good game. Both boys and girls really feel the impact of just a second’s pleasure, for the rest of their lives.

    Reply
  46. commercial snow removal

    Hello There. I found your blog using msn. This is
    a very well written article. I will be sure to
    bookmark it and come back to read more of your useful information. Thanks for the post.
    I will definitely comeback.

    Reply
  47. correx

    An fascinating dialogue is price comment. I believe that you should write extra on this subject, it might not be a taboo topic however typically individuals are not sufficient to talk on such topics. To the next. Cheers

    Reply
  48. accident attorney

    I just couldn’t leave your website prior to suggesting that I extremely enjoyed the standard information a person supply for your visitors?
    Is going to be again steadily to investigate cross-check new posts

    Reply
  49. Susan

    ótima problemas completamente, você só ganhou um emblema
    novo leitor. O que pode você sugerem em relação ao seu
    publicar que você apenas fez alguns dias no passado?

    Qualquer certeza ?

    Reply
  50. father john misty tour illinois

    You should understand that purchasing a whole new car or vehicle via loan involves greater than a downpayment and monthly premiums father john misty tour illinois keep at heart that your particular budget will should include all utilities and almost every other cost with
    running a household.

    Reply

Leave a Comment

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