---
title: "UploadSettings.ChunkSize Property  ActiveX/Java Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/JA_P_P_UploadSettings_ChunkSize.htm
product: "Upload Suite 8"
---

# UploadSettings.ChunkSize Property ActiveX/Java Uploader PHP

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
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/JA_P_P_UploadSettings_FilesPerPackage.htm.md) and [UploadConverterOutputSeparately](https://www.aurigma.com/docs/us8/JA_P_P_UploadSettings_UploadConverterOutputSeparately.htm.md) properties.
 
Default value is **0**.

## Remarks
 
When this property is greater than `0`, ActiveX/Java Uploader adds converted files and metadata to a POST request until the request length exceeds [ChunkSize](https://www.aurigma.com/docs/us8/JA_P_P_UploadSettings_ChunkSize.htm.md) + metadata size bytes. If the last added file does not meet the chunk size limitation, ActiveX/Java 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 ActiveX/Java 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
 
- [Aurigma.ImageUploader.UploadSettings.ChunkSize ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_UploadSettings_ChunkSize.htm.md)
- [$au.uploadSettings.chunkSize JavaScript PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_J_$au_uploadSettings_chunkSize.htm.md)

### Manual
 
- [Sending All Files at Once or in Several Parts in ActiveX/Java Uploader](https://www.aurigma.com/docs/us8/sending-all-files-at-once-or-in-several-parts.htm.md)
