开发者

Where does IIS save a file when it is uploaded?

开发者 https://www.devze.com 2023-01-17 00:44 出处:网络
I wonder where IIS sa开发者_如何学Goves the uploaded file? There must be some default directory. Is it possible to save an uploaded file to a user defined directory on IIS?There is a temp folder indee

I wonder where IIS sa开发者_如何学Goves the uploaded file? There must be some default directory. Is it possible to save an uploaded file to a user defined directory on IIS?


There is a temp folder indeed, but what you usually do is save your uploaded file in the code behind (assuming 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 set the temp folder location for any other reason (which is possible), please elaborate.

0

精彩评论

暂无评论...
验证码 换一张
取 消