File upload silently fails

Feb 25, 2009 at 10:01 AM
I have a problem with flajaxian control on one of my production servers. Process of file uploading takes too much time, and sometimes gets stuck and silently fails (file does not get uploaded, and server event OnFileReceived is never fired).  I noticed that it might be related to file size (happens more often for big files), so I've explicitely set timeout for the host page to 20min, with the following element in web.config file:
<location path="AudioEdit.aspx">
      <httpRuntime maxRequestLength="51200" executionTimeout="1200"/>
      <pages validateRequest="false"/>

However, this does not resolve the problem. Nedless to say, it does not happen on my localhost so I don't know how to debug it.

Do you have any ideas about the cause of problem and possible solution? Any feedback is welcome.

Feb 25, 2009 at 11:57 AM
The request limitations are described here:

If you want to notify user of the error (so it's not silant) and possibly log it use FileStateChanged:

httpStatus different from 200 will signify error
Feb 26, 2009 at 8:22 AM
Thank you for the quick reply.

After adding the logic to display the error on client, I found out that httpStatus has the value 200, and file.state is File_Error.

I would still like to know what's causing the error, especially since it does not appear on all of the web servers we use.

Any ideas what might be the problem and how to get things working on this machine?


Feb 28, 2009 at 12:35 AM
Use fiddler to see what error you got.
Mar 11, 2009 at 11:03 AM
After using fiddler, I have found out that site behaves differently depending whether fiddler is used or not.

Without fiddler, upload progress is very slow, and eventually fails (after about a minute) with the status message that I have described above.

With fiddler, I immediately get "upload successful" message (displayed on FileStateChanged client side event, when file.state == Flajaxian.File_Uploaded). Inside fiddler window, I see actual async request, but it takes too much time to finish (I canceled it after 40min for 2MB file...). Here's a fiddler screenshot, too see what I'm talking about.

It's still quite puzzling...