0

I have quite a basic setup

<Directory "/var/www/example.com/public">
    AuthType Basic
    AuthName "Restricted Access
    AuthUserFile /etc/httpd/conf/users
    Require valid-user
</Directory>

This works fine except one aspect, i am using uplodify swfupload and it can't upload files because it triggers a 401 error.

Is there any way the uploader can bypass this?

Moak
  • 734
  • 3
  • 10
  • 31

1 Answers1

0

Turn off authentication for the upload folder:

<Directory "/path/to/upload/folder">
    ...
    Satisfy Any
</Directory>

You can also do it for only one file with Files directive.

Another way is the pass session ID to the upload script.

quanta
  • 51,413
  • 19
  • 159
  • 217
  • `AuthType Basic` sends the userid/password with each request. there is no session ID. You should be able to specify that info in the URL `http://user@password:example.com/public/` – Chris Nava Jul 29 '11 at 14:03