SERVER FileUpload Network Shared / Shared Path

0

ASP.Net MVC - AdoDB

I used to upload and download from the web server where I published my files in this way, it worked correctly.

Server.MapPath("~/UploadedFiles/pdfDocuments/");

But now, I want to send them to another route outside the web server, inside a network directory (shared folder). I need your help because I already tried this:

Server.MapPath(@"\sharedfolder\UploadedFiles\pdfDocuments\");
    
asked by rxfeminine 23.05.2018 в 17:42
source

1 answer

0

You do not need the Server.MapPath, you can directly use the UNC path to copy the files in the shared folder.

    
answered by 23.05.2018 / 17:51
source