This documentation is for the old version. Go to the latest Upload Suite docs

restrictions.maxFileSize Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

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

Syntax

JavaScript Initialize
$au.uploader({
    restrictions: {
        //...other params...
        maxFileSize: 0,
        //...other params...
    }
})
Get/Set Value at Runtime
$au.uploader('uploaderID').restrictions().maxFileSize(value);
value = $au.uploader('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.

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

Manual