WordPress Flash Uploader Fix for the HTTP Error
Last week I mentioned that I was having problems with comment moderation since upgrading to WordPress 2.7. Well, I was also having trouble with the flash uploader. I would get an error and have to use the browser uploader. Not a big deal but it annoyed me and slowed me done because I could only upload one image at a time.
So, I also decided to tackle this when I did my WordPress spring cleaning and I found a solution that worked for me.
When I would try to use the flash uploader for images I would get an error that said HTTP Error in bright red and nothing would happen.
When I started doing some research on the WordPress forums I discovered that there were many causes of this problem and just as many possible solutions. My heart sank a little because I wanted one simple answer and didn’t want to try a lot of different solutions. I am, however, only going to discuss the solution that worked for me.
The error is often caused by mod_security, which is a security module installed by the web host. This can be corrected by modifying the .htaccess file and there are two ways to deal with this.
- Install the Image Upload HTTP Error Fix plugin. The plugin adds the necessary lines to the .htaccess file. I have not tried this plugin so can’t vouch for it but people seem to be using is successfully.
- Edit your .htaccess file. This file is at the root level of your WordPress installation. Download it via ftp, make a copy, and then add the following lines to it.
#BEGIN Image Upload HTTP Error Fix
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
#END Image Upload HTTP Error FixThen upload the edited .htaccess back to the root level of your WordPress installation.
I used the second solution because I am familiar with editing the .htaccess file and didn’t want to install another plugin just to do this for me. If you are having a similar problem with the flash uploader this solution may correct it. This thread in the WordPress forums discusses other possible solutions if this one doesn’t work for you.
photo credit: Ray Radlein
Related Posts:









April 6, 2009 at 3:59 am
Plugin route may be easier for dummies though you never know the outcome of the plugin. I had some weird plugins in the past that updates robot.txt but I would back it up first, cross check it three four times before allowing the changes.
Editing directly is a better approach like you and I would do (though I am not that good in .ht configurations). Backing up is a step that one should always remember :)
Ajith Edassery´s last blog post – T3Leads review – An affiliate program that is exciting
April 6, 2009 at 2:29 pm
Hi Ajith – I just copied and pasted it into my .htaccess file. But I did back it up first – I’ve made mistakes with it in the past, which made my site inaccessible.
April 6, 2009 at 8:23 pm
I was just about to make a “ATTENTION NEWBIES” comment in regards to being very careful with the .htaccess.
Awesome savable tips though, thanks. :)
Dennis Edell´s last blog post – 9 Qualities You Should Find In A Good Web Designer
April 6, 2009 at 11:42 am
Reading the code over, it makes total sense.
For the unfamiliar, it’s overriding a server security setting. In other words, it’s not WP or Flash that’s the problem – it’s the server.
Andrea_R´s last blog post – Two things
April 6, 2009 at 2:30 pm
Hi Andrea – See, that’s why I said you are smart :-) I should clarify that it’s the server causing the error rather than WordPress.
April 6, 2009 at 8:24 pm
Then shouldn’t one contact the host regarding it?
Dennis Edell´s last blog post – 9 Qualities You Should Find In A Good Web Designer
April 7, 2009 at 7:22 pm
You could try – some hosts incorrectly think they need mod_security.
April 6, 2009 at 3:06 pm
I would like credit for reading this, even though I am not sure exactly what was said.
Although seriously, the more I just read these kinds of posts from you the more little bits of knowledge I am getting, so thanks so much! When I first started, I didn’t know what a php was! I still don’t precisely but I’m getting a vague idea. That’s progress!
Tracy´s last blog post – 6 Things I secretly hope are included in life coaching
April 6, 2009 at 4:04 pm
Hi Tracy – I guess it would make more sense if you had ever had the error – so you’re lucky :-)
If some of articles are difficult to follow you can also enjoy the photos at the top – I was especially happy with my find for today.
April 6, 2009 at 4:40 pm
Sweet; I’ve had issues with the flash uploader for a while now; will give this a shot.
Donace | The Nexus´s last blog post – Traffic Android Review
April 7, 2009 at 7:23 pm
Let me know if it solves the problem for you – there is more than once cause and solution for flash uploader problems.
April 8, 2009 at 3:58 pm
I need to get the anti-spam thing, about 95% of comments needing moderation are those. Jeez Louize, get a life people — no one needs your viagra and online slots already.
LOVE the pic you chose for this.
Jannie Funster´s last blog post – Potential Regalements
April 8, 2009 at 6:55 pm
Hi Jannie – Do you use Askimet? It’s not the only anti-spam plugin but it does work really well. And seriously, I think everyone who wants viagra has already purchased it. And the spammers are SO sexist – all their spam is targeted at men ;-)
Thanks for mentioning the photo – I was really proud of that find.
April 13, 2009 at 10:30 am
I am also facing a problem with the Flash Uploader. When i click on “Choose Files to Upload” , nothing happens while the browser uploader works fine. Any idea what could be the problem ?
Madhur Kapoor´s last blog post – Read It Later Firefox Extension
April 13, 2009 at 11:49 am
Hi Madhur – Unfortunately, there are so many reasons why the flash uploader might not be working.
In this thread, Otto lists all the main reasons and things to try
http://wordpress.org/support/topic/164999
Also, have you tried in both IE and Firefox?
April 19, 2009 at 1:15 pm
Thanks for the link. Happening in both IE and FF. i think the problem can be in flash player
Madhur Kapoor´s last blog post – Change Desktop Wallpaper Periodically with ThetaWall
April 20, 2009 at 6:33 am
Hi Madhur – Well, at least that eliminates the browser. Have you tried using a different computer? That might give you more information. And maybe something on that list will help.
July 29, 2009 at 12:18 am
Thanks for this post.
It work for me.
Hoi An´s last blog ..Hội An: Giới thiệu tiềm năng du lịch trên mạng
July 29, 2009 at 8:06 am
Hi Hoi – Great! I’m glad it fixed the problem.
January 20, 2010 at 9:27 am
Just chiming in to say it worked for me. Cheers.
January 20, 2010 at 2:05 pm
Hi Nils – Great! Thanks for letting me know.
February 21, 2010 at 6:37 am
hey there – it worked for me as well. cheers!
February 21, 2010 at 12:13 pm
Hi Steph – Great! I’m glad it solved the problem.