Where does IIS save the file when it is downloaded?

I wonder where IIS saves the downloaded file? There must be some default directory. Can I save the downloaded file to the IIS user directory?

+3
source share
1 answer

Actually there is a temp folder, but what you usually do is save the downloaded file in code (if you are talking about ASP.NET):

Aspx file:

<asp:FileUpload ID="FileUpload1" runat="server" />

CS file:

FileUpload1.SaveAs("C:\\YOUR LOCATION\\" + FileUpload1.FileName);

If you need to install a temporary folder folder for any other reason (which is possible), please specify.

+4
source

Source: https://habr.com/ru/post/1765237/


All Articles