---
title: "Restrictions.MaxFileSize Property  HTML5/Flash Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/FH_P_P_Restrictions_MaxFileSize.htm
product: "Upload Suite 8"
---

# Restrictions.MaxFileSize Property HTML5/Flash Uploader PHP

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
 
```
public function getMaxFileSize() {
}

public function setMaxFileSize($value) {
}
```
 
### Property Value
 
Type: **integer**
 
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)
- [$au.restrictions.maxFileSize JavaScript Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_J_$au_restrictions_maxFileSize.htm.md)
