UploadAdvancedModeSettings.TemporaryFolder Property
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Gets or sets the server folder where files, which are currently being uploaded, are maintained.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v25.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| String | "~/App_Data/UploadTemp/" | The folder path. |
Property Paths
You can access this nested property as listed below:
| Library | Object Type | Path to TemporaryFolder |
|---|---|---|
| ASP.NET MVC Extensions | UploadControlSettings |
|
| ASP.NET Web Forms Controls | ASPxUploadControl |
|
Remarks
In Advanced Mode, an uploaded file is sent to the server in small packets (one at a time). The packets are saved in a temporary file until upload is complete. Use the TemporaryFolder property to specify the folder containing temporary files.
Note that files are deleted from the temporary folder in the following cases:
- The file uploaded is complete.
- After the pre-defined time has elapsed. This period of time is defined by the UploadAdvancedModeSettings.UploadingExpirationTime property and is set to 6 hours, by default. Note that the file is removed only if the server hasn’t been restarted during this time. If the server is rebooted during this time, the file will be removed in 6 days.