Silverlight 4 : Uploading file to server

2019-06-17 12:00发布

问题:

Here is an easy one:

I need a stable simple file uploader with a progress bar, I have found lots of fancy ones from the search. However, I need the community opinion on which ones to go with? Tutorial links would be appreciated.

BOUNTY: I have a FileStream which I would like to upload to a server, below is a sample server server URL:

string uploadUri;
string SavedFileName = "testXRay.jpg"
uploadUri = @"http://localhost/MyApplication/Upload/Images/" + SavedFileName;

I am adding a bounty in hope to get a working solution which I could use from my SL application. MyApplication is hosted in IIS.

If any other information is needed please ask in comments.

Thanks!

回答1:

checkout the Fileupload controls on codeplex

  1. SL file Upload
  2. Sl uploader


回答2:

Please check these links as well. Might be of some help to you -

http://www.eggheadcafe.com/tutorials/aspnet/099b9829-514c-47f3-bce1-4149e4482d51/file-upload-control-using.aspx

http://aspilham.blogspot.com/2010/04/file-upload-in-chunks-using-silverlight.html



回答3:

Thanks for the responses guys and congrats to Vinay for getting the Bounty.

My answer actually came from this link on codeproject, if anyone is looking for a similar solution to this question then I would highly recommend it. I didn't have to use any external dlls and was able to easily modify the solution in the link.

I will try and upload my version sometimes in the future or when I get a chance.

Thanks,

Voodoo