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,372 Comments

  1. Pingback: Club Penguin

  2. Pingback: Farshad Farivar

  3. Pingback: buy cigars

  4. Pingback: Farshad Farivar

  5. Pingback: gold body tattoos

  6. Pingback: sexo gratis

  7. Pingback: peter beck

  8. Pingback: creation de sites web au maroc et referencement tanger

  9. Pingback: Leto 2015 kavos

  10. Pingback: porno

  11. Pingback: gold pendant bar

  12. Pingback: creation site web maroc tanger

  13. Pingback: creation de sites web au maroc et referencement a tanger

  14. Pingback: creation et referencement de sites internet a tanger au maroc pas cher

  15. Pingback: creation sites internet et referencement tanger maroc

  16. Pingback: creation site web maroc et referencement

  17. Pingback: crop top lace

  18. Pingback: coffee body scrub

  19. Pingback: penapis air dr jabbar

  20. Pingback: Anti-Aging Kosmetik

  21. Pingback: kids

  22. Pingback: referencement de sites web au maroc a tanger

  23. Pingback: referencement site internet maroc tanger

  24. Pingback: developpement de sites internet à tanger

  25. Pingback: flux rss pour la création de sites internet à tanger au maroc

  26. Pingback: jocuri

  27. Pingback: creation site web tanger maroc

  28. Pingback: creation de site web à tange au marocr

  29. Pingback: création site web tanger au maroc et referencement

  30. Pingback: referencement site internet maroc tanger

  31. Pingback: réalisation de sites à tanger au maroc et référencement pas cher

  32. Pingback: creation et referencement seo de sites internet à tanger au maroc

  33. Pingback: agence web installée à tanger au maroc de création de sites et référencement

  34. Pingback: agence de creation de sites internet à tanger

  35. Pingback: cheap zynga poker chips

  36. Pingback: zynga poker chips

  37. Pingback: kliknij link

  38. Pingback: link

  39. Pingback: creation et referencement de sites internet à tanger pas cher

  40. Pingback: zobacz oferte

  41. Pingback: hostingraja

  42. Pingback: Agence web au Maroc installée à tanger

  43. Pingback: referencement de sites internet à tanger au maroc avec optimisation top 10 google

  44. Pingback: referencement site web tanger maroc avec optimisation top 10 google

  45. Pingback: developpement de sites internet à tanger et refrencement seo

  46. Pingback: agence web maroc installée à tanger

  47. Pingback: référencement avec optimisation top 10 google à tanger au maroc de sites internet

  48. Pingback: cheap zynga poker chips

  49. Pingback: videos porno

  50. Pingback: agence web tanger maroc de creation site web tanger

Leave a Comment

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