I wonder where IIS saves the uploaded file? There must be some default directory. Is it possible to save an uploaded file to a user defined directory on IIS?
+3
A:
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.
Olaf
2010-09-17 07:38:44
In case of MVC, would it be the same?\
Wajih
2010-09-17 07:46:08
Basically, yes. The aspx would be the view and the cs the controller.
Olaf
2010-09-17 07:50:44