views:

171

answers:

0

A project I'm working on uses a Flash component to upload files (the Flash allows for multiple file uploads at the same time and gives a nice upload progress bar).

Once the upload is done, the httpContext (including the files) is being sent to: uploadhandler.axd.

This works great, the uploadhandler is registered in my web.config like this:

<add name="uploadHandler" preCondition="integratedMode" path="uploadHandler.axd" verb="*" type="multipleFileUpload.handler, multipleFileUpload" />

Here's the problem: my beta server has authentication enabled, because I don't want just everybody to be able to access it. So I have Windows authentication enabled (also tried with basic authentication).

Once the upload is done, the Flash tries to call uploadHandler.axd and I get a pop-up asking me for my username and password (again, even though I've told my browser to remember the credentials). Once I enter them however, everything comes to a halt, the Flash component crashes, which in turn crashes my browser.

This is a problem ONLY in Chrome/Firefox, it seems to work fine in Internet Explorer. However, I need for this component to work in all browsers.

What I've tried is adding this near the bottom of my web.config, but it doesn't help:

<location path="uploadHandler.axd">
  <system.web>
    <authorization>
      <allow users="*" />
    </authorization>
  </system.web>
</location>

What else can I try?

This is a Windows 2008 server with IIS7, the application pool is running in integrated pipeline mode on .net 3.5.