---
title: "restrictions.maxFileSize Property  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_P_J_$au_restrictions_maxFileSize.htm
product: "Upload Suite 8"
---

# restrictions.maxFileSize Property HTML5/Flash Uploader JavaScript

Supported technologies: ![Adobe Flash](https://www.aurigma.com/docs/us8/icons/flash.png)
 
Gets or sets a maximum file size allowed for upload to the server.

## Syntax
 
```
$au.imageUploaderFlash({
    restrictions: {
        //...other params...
        maxFileSize: 0,
        //...other params...
    }
})
```

```
$au.imageUploaderFlash('uploaderID').restrictions().maxFileSize(value);
value = $au.imageUploaderFlash('uploaderID').restrictions().maxFileSize();
```
 
### Property Value
 
Type: **Number**
 
The maximum size (in bytes) for files allowed for upload. If the value is `0`, then there is no limit.
 
Default value is **0**.

## See Also
 
### Reference
 
- [Aurigma.ImageUploaderFlash.Restrictions.MaxFileSize ASP.NET Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_Restrictions_MaxFileSize.htm.md)
- [Restrictions.MaxFileSize PHP Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_P_Restrictions_MaxFileSize.htm.md)
