WordPress Image Upload HTTP Error

I have been enjoying using the latest version of WordPress but i am getting seriously pissed off with the fact that every time i try and upload an image i am presented with some red text that tells me “HTTP Error”.

As you can see that text is really not very helpful, so its hard to find out exactly what the issue with WordPress is. Now i have been searching the net for the answers and the most common answer is to insert this code into your .htaccess.

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

However, if like me you tried this and it didn’t work, your problem might be something a lot more strange.

[JUMP TO SOLUTION WITHOUT READING MY FINDINGS]

I got onto my hosts because i thought it might be something a bit more serious on the web server, when George (the web host guy) tried to upload an image he managed to do it ok without any sort of problem, i thought it was a bit weird so asked what OS and browser he was using and it turns out it was XP and IE.

I finished off the chat and booted my MacBook into XP mode, opened up IE and sure enough i could upload an image into WordPress, how fucking weird? Well next i opened Firefox in XP and tried to do it… worked again.

So i booted back into OSX and tried it from Firefox… didn’t work, so i opened up Safari.. didn’t work, i even asked the Evil Green Donkey and some others in my office to try it from their Macs… didn’t work.

For what ever reason which i really can’t get my head around, it seems that this is an issue that is specifically with Flash on the mac, it doesn’t even seem browser related. And i have tried this on over 6 different installs of WordPress on multiple hosting accounts.


I reinstalled flash for the mac and tried every possible solution to this problem which are listed on the wordpress blog and on another site i found and still no joy. The ONLY way i can upload images to any of my blogs using OSX is to disable the flash image uploader by using the no-flash-uploader plugin, this reverts it back to the html version. To use, simply put that file into your /wp-content/plugins/ folder and then activate it through the plugins section of your admin area.

Now i can have images again, but i do hope that someone finds the issue and fixes it, in the mean time enjoy a picture that proves that none of this is an issue with my hosting and that images work fine once the flash uploader has been disabled. Now all i need to do is install the above mentioned plugin on all of my sites :o(

As usual, please leave a comment if you have experienced this issue.

Leave a Reply

52 Comments on "WordPress Image Upload HTTP Error"

Notify of
avatar
Kester
Guest

Thank you SO much. On OSX too, and nothing else worked.

You’re a star.

Zaman
Guest

I was using WordPress 3.4.1 version after upgrading 3.4.2 version i was facing the HTTP Error problem when tried to up load image and activating the plugin, editing the .htaccess file and so on didnt worked for me, problem sucked my 10 hours, this is a bug for 3.4.2 version, i uploaded the older version script 3.4.1 then it worked for me.

frebro
Guest

Yes, this solved the issue for me. I’m also on Mac OS X Leopard with Flash 9.0.124.0, and using the latest Safari for WP admin. WordPress stopped generating thumbnails for me though. Whatever size I choose to include it always uses the original size.

Aditya Kuber
Guest

Hell yea! I drove myself crazy trying to solve it. And like you, drove my host up the wall to!

Trying the no-flash one now… but I’m never going to IE! I’m happy with Mac + FF!

trackback

[…] You can check it out at http://www.chewie.co.uk/general/wordpress-image-upload-http-error/ […]

kristarella
Guest

Have you upgraded to 2.6.1 yet? Are you still having this problem.

I’m having problems too and they’re not fixed by the htaccess solution.

Will
Guest
Well, it’s pretty weird. I uploaded the no-flash plugin and like those above, the stupid HTTP error is gone and I can deal with images. On WordPress 2.5.1 using Sea Monkey for Admin with Mac OS 10.4.11. But the funny thing is that this has just started happening. This makes me think there is a plugin conflict. Bad Behaviour has long been deactivated so it must be another one. In the interim I’ve been uploading images with FTP and coding them as if I was on a web site years ago. May just continue with this method until I take… Read more »
Jeremy
Guest

Thank you SO much for this! I began hating WordPress because of that horrid Flash Uploader. The plug-in cured my hatred for the blogging platform!

trackback

[…] very enlightening article on the now infamous WordPress “Http Error”. After reading the article I wasn’t able to fully diagnose the problem which was occurring, however, I was able to find […]

PeeKa
Guest
n1ce
Guest

I have the same problem but XP and Firefox. Possible fix posted here: http://wpwatch.net/2008/10/14/wordpress-image-flash-uploader-generating-a-http-error-message/

Tutorialvine.com
Guest

That plugin actually did the trick for me!

Well, not really, but it did remove the problem for the customer, who does not care which version she is using.

Thanks for making me aware of that plugin

PerS
Guest

Thanks for sharing this 🙂

I made a small modification since I needed it for wpmu (i.e. both mac and non-mac users):

add_filter('flash_uploader', 'noflashuploader');
function noflashuploader(){
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';

if(strpos($user_agent, 'mac') !== false) {
return false;
} else {
return true;
}
}

for wpmu I uploaded it to the muplugins directory

Sam
Guest

Thanks for sharing this. I have been trying to solve this same problem for few months now and nothing worked. But today I downloaded flash player 10 (I was using version 9) and everything works great !

Im using wp 2.7

Adrian
Guest
I’m posting this because I’ve been tearing my hair out for weeks trying to suss this out, and I couldn’t find any solutions online. When I tried to use the Flash uploader in WordPress 2.7 with a Mac (both Safari and Firefox) with Flash 10 I would get an HTTP Error message, whereas I could upload fine from a PC, both IE and Firefox, with Flash 10. After having gone through lots of ideas, I finally hit on the fact that the site was behind an htaccess / htpaswd restriction because it was in development and I didn’t want other… Read more »
joelnagy
Guest

I had been searching for a solution to this issue for a couple of days and realized that the authentication was issue when I read your comment. Thanx a lot.

ToolboxCreations
Guest

Ah, damn, that's it! Thank you!

gimpusmons
Guest

This is not a Mac-only problem. I use Vista 64 with WordPress 2.7 and the Flash image uploader in WordPress stopped working for me recently but only in Firefox 3. It still worked fine in Explorer 8 Beta 2. My fix was simple. I reinstalled the Flash browser plugin for Firefox and it started working again immediately.

mccormicky
Guest
In my case it is not Mac or Windows or the server or the full moon – it’s htaccess + .htpasswd. I can’t use the flash based uploader because the site is protected by .htaccess and .htpasswd just like Adrian’s site but unlike Adrian I can’t comment out the lines causing this problem because I don’t know what they are and it might make the site accessible to all while I am updating(not good on a paid-access-only site). So I leave .htaccess alone and use the Flexible Upload plugin to be able to upload multiple images and Scissors plugin to… Read more »
Zahrah
Guest

Hey there,
Well, the message I keep getting refers to some sort of 'data connection error'.
No idea what that is. Anyway, I'm going to give your method a go, even though you had a slightly different problem. You never know, it might just work. I'll report back when I've tried it. Thanks.

Wade
Guest

I was having the same problem with FF3.5/XP . I just tried the 'Browser uploader' and got the following error;
You have used your space quota. Please delete files before uploading.

I'm contacting my admin to increase our quota…

dbarradas
Guest

try this:

Here is what they said:

“Modsecurity was blocking the useragent of the flash uploader. This is common. I disabled the block.”

When I asked for more details about where exactly they made this change, they said:

“I simply removed the useragent block in /usr/local/apache/conf/modsec2.user.conf”

Hopefully someone else will find this useful.

(this did the trick for me … via http://wordpress.org/support/topic/293853)

lisapeet
Guest

I was facing the same problem in Firefox now I have switched on to XP & its working fine.

Easy Essay
Guest

Thank you SO much for this! I began hating WordPress because of that horrid Flash Uploader. The plug-in cured my hatred for the blogging platform!

Thoughtcat
Guest

I'm using Firefox on Windows 7 and I got the error. I added the code snippet referred to just below the second paragraph above into .htaccess and it solved it straightaway. Cheers 🙂

Molekula
Guest

It didn't work for me at first, but then i saw the problem in error log. This worked:

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

Molekula
Guest

At first this solution didn't work, but then we noticed one difference in our error log (we are using WP3). It was not async-upload.php but upload.php, so this works for us:

<IfModule mod_security.c>
<Files upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

Zudie
Guest

Just had my HTTP error fixed. Spent hours trying out different solutions in vain. Finally contacted my hoster who whitelisted the WP/Flash Upload so it would not trigger any mod_security rules anymore.

Hope this helps someone.
Editing htaccess did not help in my case!

Ava T.
Guest

Hei Zudie, do you use vps account? Because I'm having the same problem starting last week with namecheap hosting. But when I ask them about mod_security rule, this is their answer:

“Yes, we use mod_secure on our shared servers but unfortunately we can't change the shared server configuration per your request.”

Perhaps anyone can help how to solve this?

Agraj.co.uk
Guest

I want some selected images in WP post, is it possible ?

Andrew
Guest

Disabling the Flash Uploader isn't exactly a solution.  It's more of a punishment.

Paradise
Guest

Thank you Chewie  for this information..
Good works

Solafidehair
Guest

THANK YOU!!!!!!!!!!!!!!!! It worked!  Who needs a flash uploader anyway? :o)

ales
Guest

in my case, the issewas, my wordpress folder was password protected. As soon i removed protection, flash upload works.

Mihai Coman
Guest

Hello there.

I end up to your blog after a long debugging session of WP. I'm using the the latest WP 3.2.1 (fresh) and for a while now I get the http error (Internal server error when using the browser uploader) when trying to upload some images. I add htaccess lines, i installed the plugin and still nothing. Can you please give me a hint on this big issue?

Thanks, Mihai

Arifhashim
Guest

I tried this solution but now after trying to upload a small size picture, browser takes forever and shows the message “Internet Explorer cannot display the webpage”.  I tried different browser but same issue. Please help.

Anthony Colfelt
Guest

Thanks. Can't believe we are here 4 years after you posted this, and WordPress STILL has the same issue… your solution still works though!

Noxion
Guest

Solution after Media Temple upgrates on Plesk and PHP.

Edit the following file:
`/etc/httpd/conf.d/fcgid.conf`

Add this line (just below all of the other lines that start with ‘Fcgid’):

`FcgidMaxRequestLen 1073741824`

Restart your Apache web-server service with this command:

`service httpd restart`

Yey!

Susanta Kumar Sahoo
Guest

I too have this problem. please tell me how to fix this problem

Daniel Paul
Guest

thanks for the fix 🙂

exforme
Guest

works for me ! thanks

Sunganani L. Manjolo
Guest

Didn’t help at all

Kelly Kabouraki
Guest

Helpppp I dont understand ! My blog wp 3.8.1 worked just fine. Suddenly I cant upload image in red box it says http error! Help meeee

Jason Stancis
Guest

Worked for me, can’t believe that WordPress is still having this issue.

wpDiscuz