---
title: "UploadSettings.ChunkSize Property  HTML5/Flash Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_ChunkSize.htm
product: "Upload Suite 8"
---

# UploadSettings.ChunkSize Property HTML5/Flash Uploader PHP
 
Gets or sets a maximium allowed size of binary data (in bytes) uploaded within a POST request.

## Syntax
 
```
public function getChunkSize() {
}

public function setChunkSize($value) {
}
```
 
### Property Value
 
Type: **integer**
 
The number of bytes allowed to upload within a request. When this value is `0`, converted file uploaded entirely in accordiance with [FilesPerPackage](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_FilesPerPackage.htm.md) and [UploadConverterOutputSeparately](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_UploadConverterOutputSeparately.htm.md) properties.
 
Default value is **0**.

## Remarks
 
When this property is greater than `0`, HTML5/Flash Uploader adds converted files and metadata to a POST request until the request length exceeds [ChunkSize](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_ChunkSize.htm.md) + metadata size bytes. If the last added file does not meet the chunk size limitation, HTML5/Flash 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 HTML5/Flash Uploader PHP 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
 
- [FilesPerPackage Property](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_FilesPerPackage.htm.md)
- [MaxConnectionCount Property](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_MaxConnectionCount.htm.md)
- [Aurigma.ImageUploaderFlash.UploadSettings.ChunkSize ASP.NET Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_UploadSettings_ChunkSize.htm.md)
- [$au.uploadSettings.chunkSize JavaScript Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_J_$au_uploadSettings_chunkSize.htm.md)

### Manual
 
- [Sending File at Once or in Several Parts in HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/sending-file-in-single-request-or-in-several-chunks.htm.md)
