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!

2,235 Comments

  1. www.5vyx.com

    Good replies in return of this question with solid arguments and telling all on the topic of that.

    Reply
  2. Wendy

    Hello there! This article couldn’t be written much better!
    Looking through this post reminds me of my previous roommate!
    He continually kept talking about this. I am going
    to forward this article to him. Pretty sure he’s going to
    have a great read. I appreciate you for sharing!

    Reply
  3. This piece of writing will help the internet visitors for building up new blog
    or even a blog from start to end.

    Reply
  4. web3.mis23.de

    I’m now not positive the place you are getting your info,
    but great topic. I must spend some time finding out much more
    or understanding more. Thank you for excellent info I used to be in search
    of this info for my mission.

    Reply
  5. educação a distancia

    Mu?to bom post . ?u sou lidando com
    a?guns destes ?uestões, b?m ?omo…

    Reply
  6. Biuro rachunkowe Toru?

    Hmm it appears like your blog ate my first comment (it was extremely
    long) so I guess I’ll just sum it up what I had written and
    say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to everything.
    Do you have any points for inexperienced blog writers?

    I’d genuinely appreciate it.

    Reply
  7. instagram follower kaufen

    Aw, this was a very nice post. In idea I would like to put in writing like this moreover – taking time and actual effort to make an excellent article… but what can I say… I procrastinate alot and not at all seem to get one thing done.

    Reply
  8. Dora

    Sweet blog! I found it while surfing around on Yahoo
    News. Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never
    seem to get there! Thanks

    Reply
  9. Angeles

    Hi there just wanted to give you a quick heads up. The words in your post seem to be running off the screen in Chrome.

    I’m not sure if this is a formatting issue or something to do with internet
    browser compatibility but I thought I’d post to let you know.

    The design and style look great though! Hope you get the issue fixed soon. Many thanks

    Reply
  10. escape room near me

    Simply wish to say your article is as astounding.
    The clarity in your post is simply excellent and i could assume you’re an expert on this subject.
    Well with your permission allow me to grab your RSS
    feed to keep up to date with forthcoming post. Thanks a million and please keep up the
    gratifying work.

    Reply
  11. laptop reparatur köln

    Thank you for sharing your thoughts. I truly appreciate your efforts and I am waiting for your further post thanks once again.

    Reply
  12. Blockchain Engineer Jobs

    This actually answered my problem, thanks!

    Reply
  13. Errol

    Hello to every one, the contents existing at
    this site are in fact awesome for people experience,
    well, keep up the nice work fellows.

    Reply
  14. Lou

    I think this is one of the most significant information for
    me. And i’m glad reading your article. But should remark on few general
    things, The website style is perfect, the articles is really nice
    : D. Good job, cheers

    Reply
  15. Kathaleen

    Hurrah! Finally I got a webpage from where I can actually obtain helpful data
    concerning my study and knowledge.

    Reply
  16. corner computer Workstation uk

    Click right here to be taken to our committed download page.

    Reply
  17. Alexandra

    My spouse and I stumbled over here from a different website and
    thought I might as well check things out. I like what I see
    so now i am following you. Look forward to checking out your web page repeatedly.

    Reply
  18. ????? ????? ???

    Although this is real for a lot of situations, it does not
    mean that spending much less compared to typical for hotel stays isn’t feasible.

    Reply
  19. microfiber gym towel

    Excellent article. I absolutely love this site. Keep it up!

    Reply
  20. Treatment Centers For Addiction

    Today, I went to the beach with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell
    to her ear and screamed. There was a hermit crab inside and
    it pinched her ear. She never wants to go back!
    LoL I know this is entirely off topic but
    I had to tell someone!

    Reply
  21. https://rxtortattorney.s3.amazonaws.com/

    magnificent issues altogether, you simply received a
    new reader. What may you recommend about your put up that you made
    some days in the past? Any certain?

    Reply
  22. ??? ? ??????

    If some one needs expert view concerning running a blog then i
    suggest him/her to go to see this weblog, Keep up the nice work.

    Reply
  23. http://integraltechservice.by

    Great blog! Is your theme custom made or did you download it from somewhere?
    A design like yours with a few simple adjustements would really make my blog stand out.
    Please let me know where you got your design. Kudos

    Reply
  24. Archer

    Great delivery. Solid arguments. Keep up the good effort.

    Reply
  25. www.linux.ca

    Th?t is such a ffun recreat?on and wwe ha? ann id?al bi?thday
    Daddy.? Larry ad?ed. ?Can we play ?What?s the ?erfect factor about God?
    tomorrow too?? he beg?e? his Mommy.

    Reply
  26. Tera

    I’d like to find out more? I’d love to find out some additional information.

    Reply
  27. dj Nunta bucuresti forum

    Your web site is very common on Social Networks.

    Reply
  28. order now cheap stromectol shop

    Hi! This is kind of off topic but I need some advice from an established blog.
    Is it very hard to set up your own blog? I’m not very techincal but I can figure things out
    pretty fast. I’m thinking about creating my own but I’m not sure where to start.
    Do you have any points or suggestions? Cheers

    Reply
  29. The Elder Scrolls Online

    Inspiring quest there. ?hat occurred afte??
    T?ke care!

    Reply
  30. dj nunta Preturi

    Totul este simplu, cand exista lista de organizare.

    Reply
  31. Drift Trike

    You ought to be a part of a contest for one of the most useful sites on the web.
    I will recommend this site!

    Reply
  32. Prime Software

    Its suich as you read my mind! Yoou seem to know a lot abut this, like you wrote thee e
    book in it or something. I feel that you simply could do with some p.c.
    to drive the message house a little bit, however other thasn that, this is excellent blog.
    An excellent read. I’ll cewrtainly be back.

    Reply
  33. Wally

    Hi there, after reading this remarkable piece of writing
    i am also delighted to share my familiarity here with mates.

    Reply
  34. Apa itu agen casino sbobet online terpercaya

    Hi to all, it’s genuinely a pleasant for me to go to see this website,
    it consists of helpful Information.

    Reply
  35. Suzanna

    What’s up colleagues, good article and nice urging commented
    here, I am in fact enjoying by these.

    Reply

Leave a Comment

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