## Aurigma Image Uploader Flash 7.2

# uploadSettings.chunkSize Property

- Collapse All Sections
- See Also
- Language Filter ( all languages )

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

## Syntax

### JavaScript

    $au.imageUploaderFlash({
        uploadSettings: {
            //...other params...
            chunkSize: 0,
            //...other params...
        }
    })

    $au.imageUploaderFlash('uploaderID').uploadSettings().chunkSize(value);
    value = $au.imageUploaderFlash('uploaderID').uploadSettings().chunkSize();

### Property Value

Type: Number

The number of bytes allowed to upload within a request. When this value is 0, converted file uploaded entirely.

Default value is 0.

## Remarks

When this property is greater than 0, Image Uploader Flash 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 Flash 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 Flash ASP.NET or Image Uploader Flash PHP to handle upload on the server side. Both these wrappers automatically bundle pieces of one file, uploaded in separated chunks, and provide an access to this file as if it was uploaded entirely.

## See Also

### Reference

- Aurigma.ImageUploaderFlash.UploadSettings.ChunkSize ASP.NET Property
- UploadSettings.ChunkSize PHP Property