Back to Devexpress

UploadAdvancedModeSettings.TemporaryFolder Property

aspnet-devexpress-dot-web-dot-uploadadvancedmodesettings-f9b4e323.md

latest3.0 KB
Original Source

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

csharp
[DefaultValue("~/App_Data/UploadTemp/")]
public string TemporaryFolder { get; set; }
vb
<DefaultValue("~/App_Data/UploadTemp/")>
Public Property TemporaryFolder As String

Property Value

TypeDefaultDescription
String"~/App_Data/UploadTemp/"

The folder path.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to TemporaryFolder
ASP.NET MVC ExtensionsUploadControlSettings

.AdvancedModeSettings .TemporaryFolder

| | ASP.NET Web Forms Controls | ASPxUploadControl |

.AdvancedModeSettings .TemporaryFolder

|

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.

See Also

Upload Modes

Upload Large Files

UploadAdvancedModeSettings Class

UploadAdvancedModeSettings Members

DevExpress.Web Namespace