upload files from web client to web server

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

On my local machine when I test my Dot Net web app I have no trouble in uploading a file to a folder.
When I try the same from remote client to web host - failure every time.
Permissions are granted to read/write/modify/... on folder.

Either I am not addressing the folder on the server.
or
there may still be other permissions I need to set
My code reads:

FileInfo uploadedFileInfo = new FileInfo(uploadedFile.FileName);
.........
fileName = uploadedFileInfo.Name;
savePath = Server.MapPath("CVStore") + "\\";
cvFileN = uploadFileName;
cvFileName = savePath + cvFileN;

uploadedFileInfo.CopyTo(cvFileName, true);


Suggestions welcome
Thanks
 
Back
Top