Skip to main content
Tab

UploadAdvancedModeSettings.PacketSize Property

Specifies the size of file packets.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(200000)]
public int PacketSize { get; set; }

Property Value

Type Default Description
Int32 200000

The size of the packets in bytes.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to PacketSize
ASP.NET MVC Extensions UploadControlSettings
.AdvancedModeSettings .PacketSize
ASP.NET Web Forms Controls ASPxUploadControl
.AdvancedModeSettings .PacketSize

Remarks

In the Advanced Upload Mode, the uploaded file is sent to the server in small packets (one by one) and is saved into a temporary file within a specific server folder. The PacketSize property specifies the size of the packets in bytes.

If the PacketSize property value exceeds the value of the Web.config’s MaxRequestLength setting, the following error occurs:

The AdvancedModeSettings.PacketSize property’s value exceeds the Web.Config’s maxRequestLength setting. For ASPxUploadControl to work correctly, the AdvancedModeSettings.PacketSize property should be less than the Web.config’s maxRequestLength setting.

To solve the issue, set the PacketSize value less than the MaxRequestLength value.

See Also