Search code examples
jqueryjquery-pluginsuploadify

Uploadify and HTTP 401 challenges. Why doesn't it work consistently?


Using Uploadify plugin which uses jQuery and SWF. Some web servers it works, some it does not. Seems to get a HTTP 401 Not Authorized when attempting to upload. Might be related to SWF. In Fiddler, when it does not work, seem to get this Proxy-Support: Session-Based-Authentication, but when it does work, we don't get the Session Based Authentication. Is this a network routing issue? Proxy Issue? Any suggestions on fix

HTTP/1.1 401 Unauthorized
Date: Mon, 22 Nov 2010 22:20:45 GMT
Server: Microsoft-IIS/6.0
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 1697

Proxy-Support: Session-Based-Authentication


Solution

  • To anyone wanting to use the Uploadify plugin with Windows Authentication. Don't do it. Not just Uploadify, but any of them that use Flash files. Try another plug in instead. We used this one and it worked just great, no issues. It does not use any Flash.

    http://valums.com/ajax-upload/