---
title: "UploadSettings.FilesPerPackage Property  HTML5/Flash Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_FilesPerPackage.htm
product: "Upload Suite 8"
---

# UploadSettings.FilesPerPackage Property HTML5/Flash Uploader PHP

Supported technologies:
 
Gets or sets a number of user-selected files which will be processed and uploaded within a single request.

## Syntax
 
```
public function getFilesPerPackage() {
}

public function setFilesPerPackage($value) {
}
```
 
### Property Value
 
Type: **integer**
 
The number of user-selected files that will be processed and uploaded within a single request. If a user selects more files than specified here, several POST files will be made to send those files. When this value is `0`, all the files are uploaded in one request.
 
Default value is **1**.

## Remarks
 
When this property is greater than `0`, HTML5/Flash Uploader sends as many items (converted files and their respective metadata) per each request as specified by this param. Typical scenario is when you set this value to `1`, i.e. every user-selected file is processed and uploaded in a separate request. It gives a number of benefits: reduces amount of memory used on the server to process requests from HTML5/Flash Uploader and allows resuming partially completed upload if it has been broken, etc.
 
Note, if you configure multiple convertors, all files generated by them are uploaded together. For example, this param is 1 and you are uploading an original file + a thumbnail. If a user selects three files, they will be uploaded in three requests (not in six!). If you prefer to override this behavior and have to upload each converted file separately, use the [UploadConverterOutputSeparately](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_UploadConverterOutputSeparately.htm.md) property.

## See Also
 
### Reference
 
- [MaxConnectionCount Property](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_MaxConnectionCount.htm.md)
- [UploadConverterOutputSeparately Property](https://www.aurigma.com/docs/us8/FH_P_P_UploadSettings_UploadConverterOutputSeparately.htm.md)
- [Aurigma.ImageUploaderFlash.UploadSettings.FilesPerPackage ASP.NET Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_UploadSettings_FilesPerPackage.htm.md)
- [$au.uploadSettings.filesPerPackage JavaScript Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_J_$au_uploadSettings_filesPerPackage.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)
- [Configuring Fail-safe Upload](https://www.aurigma.com/docs/us8/configuring-fail-safe-upload-uif.htm.md)
