How can I save a file to a folder that is protected? How do I add the user and password to my route so I can save a file? For example, C: \ Desktop \ Folder When I try to open the folder, it asks for a username and password, how can I authenticate from the code?
var fullPath = Path.Combine(STORAGE_ROOT, Path.GetFileName(fileInfo.fileId));
file.SaveAs(fullPath);
return fileInfo;
In STORAGE_ROOT
, I have saved the path of the folder
And in Path.GetFileName (fileInfo.fileId)
, I have the file.