---
title: "restrictions.maxFileCount Property  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_P_J_$au_restrictions_maxFileCount.htm
product: "Upload Suite 8"
---

# restrictions.maxFileCount Property HTML5/Flash Uploader JavaScript

Supported technologies: ![Adobe Flash](https://www.aurigma.com/docs/us8/icons/flash.png)
 
Gets or sets a maximum number of files allowed for upload per one session.

## Syntax
 
```
$au.imageUploaderFlash({
    restrictions: {
        //...other params...
        maxFileCount: 0,
        //...other params...
    }
})
```

```
$au.imageUploaderFlash('uploaderID').restrictions().maxFileCount(value);
value = $au.imageUploaderFlash('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**.

## See Also
 
### Reference
 
- [Aurigma.ImageUploaderFlash.Restrictions.MaxFileCount ASP.NET Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_Restrictions_MaxFileCount.htm.md)
- [Restrictions.MaxFileCount PHP Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_P_Restrictions_MaxFileCount.htm.md)
