Back to Devexpress

UploadAdvancedModeSettings.PacketSize Property

aspnet-devexpress-dot-web-dot-uploadadvancedmodesettings-2aeb3ea6.md

latest2.9 KB
Original Source

UploadAdvancedModeSettings.PacketSize Property

Specifies the size of file packets.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(200000)]
public int PacketSize { get; set; }
vb
<DefaultValue(200000)>
Public Property PacketSize As Integer

Property Value

TypeDefaultDescription
Int32200000

The size of the packets in bytes.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to PacketSize
ASP.NET MVC ExtensionsUploadControlSettings

.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

Upload Modes

Upload Large Files

UploadAdvancedModeSettings Class

UploadAdvancedModeSettings Members

DevExpress.Web Namespace