My project looks like this: I have copied the .xap file (FileUpload.xap) and the generic handler (FileUpload.ashx), along with the fileuploadprocess class (because the HTTPHandler uses that class) into my project.
Then I have an aspx page (Default.aspx) that has a Silverlight control, according to the FileUploadTestPage.aspx in the example project:
<asp:Silverlight ID="Xaml1" runat="server" Source="~/Information/Presentations/UserControls/ClientBin/FileUpload.xap"
Width="320px" Height="200px" MinimumVersion="2.0.31005.0"
InitParameters="UploadPage=UserControls/FileUpload.ashx,Filter=Movies (*.avi;*.mpg;*.wmv;*.mpeg;*.mov)|*.avi;*.mpg;*.wmv;*.mpeg;*.mov" />
As you can see I'm not using the MultiFileUploadControl, but i looked through it, and didn't find any obvious solution that would make it better for me to use that instead of the Silverlight control for this purpose.
So I want to get the filename from the uploaded file returned to Default.aspx.cs (from the HTTPHandler??), so I can insert it into my database. I'm sure there is a way to return it from the HTTPHandler (ashx), but I have no idea how to do that, if it's possible
a small example would be greatly appreciated.
And when you say the aspx page that hosts the silverlight or the upload page? what is the difference? in the example which page is the upload page and which is the silverlight host?