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!

1,193 Comments

  1. Pingback: afro kinky clip in extensions

  2. Pingback: kik friends

  3. Pingback: http://hochzeitsbands-wien.at

  4. Pingback: buy viagra

  5. Pingback: buy steroid

  6. Pingback: love spells

  7. Pingback: How to cure cracked heels

  8. Pingback: more info here

  9. Pingback: porn

  10. Pingback: buy levitra online

  11. Pingback: videos amateur

  12. Pingback: tong eng

  13. Pingback: more info

  14. Pingback: dikabarin.com

  15. Pingback: 2mg klonopin street price

  16. Pingback: cialis at 15%

  17. Pingback: Eli

  18. Pingback: park suites

  19. Pingback: gafas de madera

  20. Pingback: ogloszenia pan

  21. Pingback: meditation hawaii

  22. Pingback: sexy teen fuck

  23. Pingback: naked teen girls

  24. Pingback: Madeline

  25. Pingback: Tristan

  26. Pingback: Homepage

  27. Pingback: Read More Here

  28. Pingback: Visit Website

  29. Pingback: Local SEO Atlanta

  30. Pingback: Read More Here

  31. Pingback: desatascos en madrid

  32. Pingback: vancouver bus schedule

  33. Pingback: Memory Foam Pillows Online

  34. Pingback: buy beastiality porn

  35. Pingback: cata bus

  36. Pingback: Ninja Blender Online

  37. Pingback: business

  38. Pingback: jak zalozyc sklep w Internecie

  39. Pingback: Free Beastiality Porn

  40. Pingback: next page

  41. Pingback: Atlanta GA Reputation Management

  42. Pingback: pikavippi

  43. Pingback: Porno

  44. Pingback: business

  45. Pingback: business

  46. Pingback: r4 3ds

  47. Pingback: make money with online gambling

  48. Pingback: serra viagra

  49. Pingback: serra viagra

  50. Pingback: www.temasdelmomento2014.com

Leave a Comment

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