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

restrictions.maxTotalFileSize Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets or sets a maximum total file size allowed for upload.

Syntax

JavaScript Initialize
$au.uploader({
    restrictions: {
        //...other params...
        maxTotalFileSize: 0,
        //...other params...
    }
})
Get/Set Value at Runtime
$au.uploader('uploaderID').restrictions().maxTotalFileSize(value);
value = $au.uploader('uploaderID').restrictions().maxTotalFileSize();

Property Value

Type: Number

The maximum size (in bytes) of all files selected 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

Only original file sizes are taken into account. Size of converted files and other auxiliary data is disregarded. So this property is useful when you upload original files without applying any client-side file transformations.

See Also

Reference

Manual