WordPress Image Upload Fix

On WordPress 2.7, if you use the image uploader to add images to posts, you may get this error:

Precondition Failed
The precondition on the request for the URL /blog/wp-admin/media-upload.php evaluated to false. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

It generally goes without saying, however, make a backup of your .htaccess file before editing it.

Add this to your .htaccess file in the root of your website to fix this issue:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

4 Responses to “WordPress Image Upload Fix”

  1. 1

    Perfect! Thank you! (I was trying to install to a subdomain and had this exact problem.)

  2. [...] I had an error about some precondition thing. I asked for help in the CMF forum and Turnip found just what I needed. To make a long story short, it is working. Thanks to Turnip for the [...]

  3. 3

    It worked for me too. Thank you. I’ve been having a problem with loading media files for awhile.

  4. 4
    Eric

    Thank you! Why dont they put this on the WordPress site, or make it easy to find?!


Want to Leave a Reply?