Gets or sets the value that determines the chunk size, in bytes, which will be used for parsing request.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.2.0

Syntax

C#
public int ChunkSize { get; set; }
Visual Basic (Declaration)
Public Property ChunkSize As Integer

Field Value

Type: System..::.Int32
The Int32 value, in bytes, of chunk size that is used for parsing request. Default value is 65536 bytes (recommended). Min value is 1 bytes.

Remarks

This property is a reflection of EAUpload configuration parameter (<EasyAlgo.EAUpload>/<Environment ... ChunkSize="" ... >).
The logic of EAUpload component defines that request is received on the server by chunks, it allows to reduce system memory usage. On IIS 5.0/5.1 the value of property should not be greater than 1000000 bytes (0,95 MB).

Note:If you want to change this property at the runtime, you should define it at the Initializing stage of an upload (see EasyAlgo.EAUpload..::.UploadState for more information). All changes for processed uploads will be ignored. Also if you have changed this property for the whole of EAUpload component (EAUploadModule..::.CommonEnvironment property) then new value will be used for the new uploads only.

Examples

You can find an example in the description of UploadEnvironment class.

Exceptions

ExceptionCondition
EasyAlgo.EAUpload..::.EAUploadConfigException Thrown when the specified value is less than 1 bytes.

See Also