FileUpload1. SaveAs (Server. MapPath (" ~/VideoFiles/") + FileUpload1. The FileName)
Or written like this:
FileUpload1. SaveAs (HttpContext. Current. Request. MapPath (" ~/VideoFiles/") + FileUpload1. The FileName)
So if you want to save to a folder on a remote server how to write?
The Path is://10.12.14.266/Project1/VideoFiles/
VideoFiles folder is set on the remote for everyone can edit
Please guide, thank you very much!
CodePudding user response:
The up ~ ~ ~ ~ ~ ~CodePudding user response:
In advance the Shared path mapped to "network disk,"Then can be the same as "local disk" file operations,