:::: MENU ::::

Thursday, May 22, 2008

A little less than a year ago I wrote about an AsyncFileUpload component for Silverlight/ASP.NET. Several things have happened since then, so I decided to rewrite it and address some of the limitations it had along the way. To make sure we’re on the same page, let me outline the goals of this proof-of-concept:

  1. Demonstrate how OpenFileDialog and HttpWebRequest can be used to upload (large) files.
  2. Show how isolated storage can be used to enable file resumes (even across browsers on the same machine).
  3. Share some experimental object model to simplify ASP.NET/Silverlight component development.

The only real non-goal is building a file upload component of production-quality.

The result

There are a few different demos you can take a look at:

  1. AsyncFileUpload with the default template (pure HTML visualization);
  2. AsyncFileUpload with a custom template (includes two Silverlight visualizers);
  3. AsyncFileUpload used from JavaScript. Although this demo still uses ASP.NET, you could easily do the same thing from other languages/frameworks/web-servers as well.

You can also download the source code for the actual library behind all of this.

More

Categories: