I\'m working on a web application. There is one place where the user can upload files with the HTTP protocol. There is a choice between the classic HTML file upload control
I implemented something very recently in Silverlight.
Basically uses HttpWebRequest to send a chunk of data to a GenericHandler.
On the first post, 4KB of data is sent. On the 2nd chunk, I send another 4K chunk.
When the 2nd chunk is received, I calculate the round trip it took between first and 2nd chunk and so now the 3rd chunk when sent will know to increase speed.
Using this method I can upload files of ANY size and I can resume.
Each post I send along this info:
[PARAMETERS] [FILEDATA]
Here, parameters contain the following: [Chunk #] [Filename] [Session ID]
After each chunk is received, I send a response back to my Silverlight saying how fast it took so that it can now send a larger chunk.
Hard to put my explaination without code but that's basically how I did it.
At some point I will put together a quick writeup on how I did this.