## Aurigma Image Uploader Flash 7.0.1

# Restrictions..::.MaxFileSize Property

- Collapse All Sections
- Restrictions Class
- See Also
- Language Filter ( all languages )
- Supported browsers:

Gets or sets a maximum file size which is allowed for upload to the server.

Namespace: Aurigma.ImageUploader
Assembly: Aurigma.ImageUploader (in Aurigma.ImageUploader.dll)

## Syntax

### Visual Basic

    Public Property MaxFileSize As Long

### C#

    public long MaxFileSize { get; set; }

### Property Value

Type: System..::.Int64

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

Image Uploader Express restricts the maximum size of each user-selected file to 100 Mb. Image Uploader Professional and Print restrict the maximum size of each user-selected file to 2 Gb. See the Comparison of Image Uploader Editions topic for details.

This property limits only a single file. If you want to set limit for all selected files, use the MaxTotalFileSize property.

## See Also

### Reference

- Restrictions Class
- Aurigma.ImageUploader Namespace
- Messages..::.MaxFileSizeExceeded
- $au.restrictions.maxFileSize JavaScript Property
- Restrictions.MaxFileSize PHP Property

### Manual

- Setting Limitations for Size and Number of Files