Popular Post
Blog Syndications
Portfolio
Projects Connaxis
Using SWFUpload with HTTP Auth
Added by:11 July 2009 19:40
Sadly the SWFUpload (swfupload.org) does not work with HTTP Authentication. A solution would be to disable HTTP Authentication for the upload_url, e.g. by excluding it with the <Location> directive in Apache:
<Location /> Require valid-user </Location>
<Location /swfupload> Satisfy Any </Location>
The above example does not work, but a little trick does work (excluding the upload url by limiting the HTTP authentication to all HTTP methods but POST):
<Directory /var/www/mysite> # do not use HTTP auth for POST to allow SWFUpload! <LimitExcept POST> AuthName "Restricted Area" AuthType Basic AuthUserFile /var/www/mysite/htpasswd AuthGroupFile /dev/null require valid-user </LimitExcept> </Directory>
I hope this helps users who want to use SWFUpload for example in an admin backend protected by HTTP Authentication!
more3 Comments
Add Comment

