Silverlight File Upload Utility (min requirement SL 2)

This file upload utility allows a user to select MULTIPLE files from the standard Windows OpenFileDialog. The user can preview the files selected (with thumbnail images for files with extensions .jpg, .jpeg, .gif, .png, .bmp, .tif). Then upload the files to a given folder.
In addition to adding an element to represent the .xaml file in the .aspx page, you need to do two things:
1 - Create an upload handler (either an .aspx page or an .ashx page). I ended up using an .aspx page because I needed access to the web cache/viewstate in order to have access to the file list after they’ve been uploaded. (See the UploadHandler.ashx and UploadHandler.aspx files in the zip file above - the page/handler basically writes the input stream of the http request to a particular directory on the web server)
2 - Set the InitParameters attribute in the Silverlight element in your .aspx page.
UploadHandlerURI - this is the fully qualified URL to the handler that you’ve created
UploadDirectory - this is the name of the directory the uploaded files are saved to. It is relative to the location of handler file.
[site root]
UploadHandler.[aspx or ashx]
UploadedFiles <— this is the directory - it is located on the same level as
the handler
InitParameters=”UploadHandlerURI=http://localhost:3914/UploadHandler.aspx,UploadDirectory=UploadedFiles”