RSS

A blog about WordPress for WordPress bloggers.

by Ian Blackford

Hosting Security Issue :: WordPress Flash Uploader Errors

Fri, Sep 19, 2008

Articles, Security

Hosting Security Issue :: WordPress Flash Uploader Errors

If you have a problem uploading images into your blog using the ‘Add media -> Add an image’ pop up window, it might be because you are using the default flash based uploader.

The problem doesn’t actually lie in the WordPress coding, it seems to lie within the settings of the webserver that is dishing out your files. Fortunately there is simple answer to this and it lies in doing a quick edit in your .htaccess file.

It seems that some hosting accounts have SecFilterScanPOST enabled and this is causing the problem.

Alter your .htaccess file by adding these two lines of code:

SecFilterEngine Off
SecFilterScanPOST Off

Now try to upload your picture again and you should find it working.

Please note: I’m not a webserver techie and I have to hold my hand up and honestly say that I’m not sure why turning off these two options makes the difference. I do know that they were on for a reason – that reason may be because it’s a default install and they can be either on or off without making any difference, or it could be that it’s a critical bit of set up that really shouldn’t be turned off.

So here is a shout out to anybody with webserver knowledge to join in the comments on this post and tell me what’s what with these settings. So please follow this post’s comments in either the comments RSS feed or subscribe to the comments below.

As with any of our advice the usual disclaimer applies: back up before you do any alterations and be aware that you do the mod at your own risk.

, , , , , , ,
Like this Article? Subscribe to my RSS feed

This post was written by:

Ian Blackford - who has written 51 posts on bloggingrocket.com.

Ian Blackford is a web developer based in Telford Shropshire and is the owner manager of Design Conscious .com Ian now creates most of his sites using WordPress and so has probably hit most of the snags and problems that everyone hits, who better then to start a blog on how to set up WordPress. Like what you've read? Then please consider giving a donation.

Contact the author

8 Comments For This Post

  1. Antonie Says:

    Yeah, this is good.
    I had the same problem a few days ago.

    The cause is the fact that mod_security prevents the Flash filereference component from communicating with the PHP script on the Apache server.

  2. Ant Harper Says:

    Fantastic! I was having this same problem and quite frankly it was annoying. Now it’s fixed, many thanks Ian.

  3. Gail Says:

    This solution fixed our problem immediately. Thank you!!

  4. James Says:

    Hey. Unfortunately my .htaccess file required about 7 extra lines to work properly. I’ve detailed them here HTTP Error WordPress Fix.

  5. picture hosting Says:

    Thank you for your help!

  6. Grady Shafto Says:

    Great topic, i’ll come again

  7. watch tv series online Says:

    Hi, i liked your post but i couldnt find the RSS feed for it so i could share it with my friends and family as well,mind to point me where it is? Thanks in advance

  8. Ian Blackford Says:

    In the header at the right hand side is an RSS icon, click that and you can subscribe to the feedburner feed for this site.

Leave a Reply