I'm using FileUpload.SaveAs() function of C# to upload files to the server but I want to save the files on another partition. Let us say, save the files on Drive D of the server instead on the current drive which is Drive C. Please share your thoughts. Thanks is advance.

I have learned that using full path such as

```
 FileUpload.SaveAs("D:\FileUpload");

```

will save the file outside the web server.

Check [this](https://stackoverflow.com/questions/5816699/file-uploading-using-server-mappath-and-fileupload-saveas) out.

To simplify the question, how can I upload files on the other partition of the server that hosts my web app?