locked
How can i do it RRS feed

  • Question

  •  Hi 

       In my project there have a part is file share,user can upload some file to the server,then other user can view ,He can directly open the file with browser or save it to local computer, Right now i facing problem on save file ,If i use System.IO provide functions i will facing security problem.And if i use IsolationStage funcitons i even do not know where the file have been saved ,so the user don't know where to find the file also.

    Does there have some solution.

    Thanks

    Thursday, April 17, 2008 10:08 PM

Answers

  • Hey egoZd, 

    Saving file is the user's choice, right? You can't write something to user's disk directly. All you can do is that BinaryWrite on browser or provide the link to the file. Then, SaveAs file dialog will be shown and the user can download if he want. Please take a look "Microsoft Download" site. http://www.microsoft.com/beta/downloads/Default.aspx  See what happen if you click "Download" button,

    Thursday, April 17, 2008 11:34 PM