0

I built a file upload control in Silverlight that uploads files to the web server. I use a custom HTTP Handler to handle the upload.

What would be the best practice to detect a whether a client has disconnected prior to finishing the upload?


I think this could go under C# and windows development as well.

4
Contributors
8
Replies
9
Views
6 Years
Discussion Span
Last Post by Fortinbra
0

The only thing I could think of is a manual timeout... using a timer of some form, but I don't know how efficient that would be.

0

Perhaps try using some sort of timer and check back on file upload progress every x seconds/minutes. If it stops after a certain period of time and the full amount of data has not been transferred, then perform whatever logic you desire.

0

That's kind what I was thinking, however, I was trying to see if there are any alternatives. It's not looking likely.

0

Something like that wouldn't really work because of the disconnected nature of the internet. HTTP is stateless.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.