---
title: "uploadSettings.filesPerPackage Property  ActiveX/Java Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/JA_P_J_$au_uploadSettings_filesPerPackage.htm
product: "Upload Suite 8"
---

# uploadSettings.filesPerPackage Property ActiveX/Java Uploader JavaScript

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 number of user-selected files which will be processed and uploaded within a single request.

## Syntax
 
```
$au.uploader({
    uploadSettings: {
        //...other params...
        filesPerPackage: 0,
        //...other params...
    }
})
```

```
$au.uploader('uploaderID').uploadSettings().filesPerPackage(value);
value = $au.uploader('uploaderID').uploadSettings().filesPerPackage();
```
 
### Property Value
 
Type: **Number**
 
The number of user-selected files that will be processed and uploaded within a single request. If more files are selected, they are submitted in separate requests. When this value is `0`, all the files are uploaded in one request.
 
Default value is **0**.

## Remarks
 
When this property is greater than `0`, ActiveX/Java Uploader sends converted files and metadata for [filesPerPackage](https://www.aurigma.com/docs/us8/JA_P_J_$au_uploadSettings_filesPerPackage.htm.md) user-selected files per each request. 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 ActiveX/Java Uploader and allows resuming partially completed upload if it has been broken, etc.

## See Also
 
### Reference
 
- [Aurigma.ImageUploader.UploadSettings.FilesPerPackage ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_UploadSettings_FilesPerPackage.htm.md)
- [UploadSettings.FilesPerPackage PHP PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_P_UploadSettings_FilesPerPackage.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)
- [Configuring Fail-safe Upload](https://www.aurigma.com/docs/us8/configuring-fail-safe-upload.htm.md)
