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: floor jack reviews

  2. Pingback: www.temasdelmomento2014.com/adios-2014-resumen-en-temas

  3. Pingback: serra viagra

  4. Pingback: Porno

  5. Pingback: top attracting women books

  6. Pingback: 411-pain

  7. Pingback: marketing white papers

  8. Pingback: miracle phytoceramides cost

  9. Pingback: where can i find pure garcinia cambogia

  10. Pingback: High Risk Industry Small Company Loans

  11. Pingback: Risky Industry Small Business Lending

  12. Pingback: How To Get A Small Business Loan Promptly

  13. Pingback: Oakland County MI Small Company Loans

  14. Pingback: wymiana szybki iphone

  15. Pingback: Clarkston Michigan Small Company Lending

  16. Pingback: Wixom, Michigan Small Company Loans

  17. Pingback: protection 1

  18. Pingback: brinks home security system

  19. Pingback: refrigerator repair Los Angeles

  20. Pingback: appliance service Los Angeles

  21. Pingback: garcinia cambogia for weight loss reviews

  22. Pingback: chiropractor cedar rapids

  23. Pingback: pizza vesoul

  24. Pingback: chiropractor cedar rapids

  25. Pingback: protect america home security

  26. Pingback: Bates Sunset Appliance

  27. Pingback: Cash Loans

  28. Pingback: City View Condos Mississauga

  29. Pingback: garcinia extract reviews

  30. Pingback: Cash Loans

  31. Pingback: Gmail Correo

  32. Pingback: no deposit bonus

  33. Pingback: attorney

  34. Pingback: daca

  35. Pingback: Home Phone Service

  36. Pingback: for business

  37. Pingback: Mississauga condos for sale

  38. Pingback: Business

  39. Pingback: Marilyn Monroe Condos

  40. Pingback: SEO Bristol

  41. Pingback: forskolin reviews

  42. Pingback: All in One Entertainment

  43. Pingback: SEO Bristol

  44. Pingback: garnicia

  45. Pingback: what is the garcinia cambogia diet

  46. Pingback: harga kasur busa

  47. Pingback: forskolin

  48. Pingback: anonymous

  49. Pingback: cigar

  50. Pingback: cigar

Leave a Comment

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