I am building a web application using WCF. I need to full path of a file to open and upload it to web service. What I am doing is first opening a file by its full path, then take stream of it and finally upload it to service. My code is below
string Path = Server.MapPath( FileUpload1.PostedFile.FileName);
System.IO.Stream fileStream = File.OpenRead(@Path);
I can't get full path of the file for security reasons.
How can I read the file that users select?