---
title: "restrictions.maxFileCount Property  ActiveX/Java Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/JA_P_J_$au_restrictions_maxFileCount.htm
product: "Upload Suite 8"
---

# restrictions.maxFileCount 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 maximum number of files allowed for upload per one session.

## Syntax
 
```
$au.uploader({
    restrictions: {
        //...other params...
        maxFileCount: 0,
        //...other params...
    }
})
```

```
$au.uploader('uploaderID').restrictions().maxFileCount(value);
value = $au.uploader('uploaderID').restrictions().maxFileCount();
```
 
### Property Value
 
Type: **Number**
 
The maximum file count allowed for upload per one session. If the value is `0` then there is no limit.
 
Default value is **0**.

## Remarks
 
**Note** 
ActiveX/Java Uploader Express restricts the maximum number of user-selected files to 100. See the [Upload Suite Editions](https://www.aurigma.com/docs/us8/upload-suite-editions.htm.md) topic for details.

## See Also
 
### Reference
 
- [maxFileCountExceeded Property](https://www.aurigma.com/docs/us8/JA_P_J_$au_messages_maxFileCountExceeded.htm.md)
- [Aurigma.ImageUploader.Restrictions.MaxFileCount ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Restrictions_MaxFileCount.htm.md)
- [Restrictions.MaxFileCount PHP PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_P_Restrictions_MaxFileCount.htm.md)

### Manual
 
- [Setting Limitations for Size and Number of Files](https://www.aurigma.com/docs/us8/setting-limitations-for-size-and-number-of-files.htm.md)
