Best way to upload multiple files from a browser

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)