## Aurigma Image Uploader 7.0.11

# UploadSettings..::.ChunkSize Property

- Collapse All Sections
- UploadSettings Class
- See Also
- Language Filter ( all languages )
- Supported browsers:

Gets or sets a maximium allowed size of binary data (in bytes) uploaded within a POST request.

Namespace: Aurigma.ImageUploader
Assembly: Aurigma.ImageUploader (in Aurigma.ImageUploader.dll)

## Syntax

### Visual Basic

    Public Property ChunkSize As Integer

### C#

    public int ChunkSize { get; set; }

### Property Value

Type: System..::.Int32

The number of bytes allowed to upload within a request. When this value is 0, converted file uploaded entirely in accordiance with FilesPerPackage and UploadConverterOutputSeparately properties.

Default value is 0.

## Remarks

When this property is greater than 0, Image Uploader adds converted files and metadata to a POST request until the request length exceeds ChunkSize + metadata size bytes. If the last added file does not meet the chunk size limitation, Image Uploader adds just a portion of this file to complete this chunk. The remaining portion will be added at the beginning of the next chunk. Each chunk is submitted to a server as a separate request. It gives a number of benefits: makes each request compartible with maximum POST request length limitation and allows resuming partially uploaded files.

Note

When you turn this mode on, it is highly recommended to use Image Uploader ASP.NET to handle upload on the server side. This wrapper automatically bundles pieces of one file, uploaded in separated chunks, and provides an access to this file as if it was uploaded entirely.

## See Also

### Reference

- UploadSettings Class
- Aurigma.ImageUploader Namespace
- $au.uploadSettings.chunkSize JavaScript Property
- UploadSettings.ChunkSize PHP Property

### Manual

- Sending All Files at Once or in Several Parts