Fixing HTTP Error for WordPress Flash Image Uploader for Sites Using Basic HTTP Authentication

Posted on by Brian

Using basic HTTP authentication is a simple way to password protect your website. However, using that type of authentication can cause errors while trying to upload images from the WordPress admin. If you’re seeing this error while trying to upload media to the WordPress Media Library:

AND, you’re using basic HTTP Authentication for access to your WordPress site, the following code should fix the HTTP Error.

1. Add a .htaccess file inside your wp-admin folder.

2. Add the following code to that .htaccess file:

AuthType Basic
AuthName share
Satisfy Any
Order deny,allow
Allow from all

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

If you are still having issues after using this code, there may be other things going wrong, such as incorrect permissions on your uploads folder or an incorrect media path set in your Media Settings.

Posted in Programming

Tagged , , ,