---
title: "Restrictions..::.MaxFileSize Property ActiveX/Java Uploader ASP.NET"
canonical: https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Restrictions_MaxFileSize.htm
product: "Upload Suite 8"
---

# Restrictions.MaxFileSize Property ActiveX/Java Uploader ASP.NET

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 file size allowed for upload to the server.
 
**Namespace:** [Aurigma.ImageUploader](https://www.aurigma.com/docs/us8/JA_N_Aurigma_ImageUploader.htm.md)
 **Assembly:** Aurigma.ImageUploader (in Aurigma.ImageUploader.dll)
 
## Syntax
  
```csharp
public long MaxFileSize { get; set; }
```
 
### Property Value
 
Type: [System..Int64](http://msdn2.microsoft.com/en-us/library/6yy583ek)
 
The maximum size (in bytes) for files allowed for upload. If the value is `0`, then there is no limit.
 
**Note** 
When you set the value that is more than 2 Gb, it is recommended to pass such value as a string.
 
Default value is **0**.
 
## Remarks
  
**Note** 
ActiveX/Java Uploader Express restricts the maximum size of each user-selected file to 100 Mb. ActiveX/Java UploaderProfessional restricts the maximum size of each user-selected file to 2 Gb. See the [Upload Suite Editions](https://www.aurigma.com/docs/us8/upload-suite-editions.htm.md) topic for details.
 
This property limits only a single file. If you want to set limit for all selected files, use the [MaxTotalFileSize](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Restrictions_MaxTotalFileSize.htm.md) property.
   
## See Also

### Reference

- [Restrictions Class](https://www.aurigma.com/docs/us8/JA_T_Aurigma_ImageUploader_Restrictions.htm.md)
- [Aurigma.ImageUploader Namespace](https://www.aurigma.com/docs/us8/JA_N_Aurigma_ImageUploader.htm.md)
- [Messages..MaxFileSizeExceeded](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Messages_MaxFileSizeExceeded.htm.md)
- [$au.restrictions.maxFileSize JavaScript PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_J_$au_restrictions_maxFileSize.htm.md)
- [Restrictions.MaxFileSize PHP PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_P_Restrictions_MaxFileSize.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)
