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

uploader.restrictions Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets or sets upload restrictions.

Syntax

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

Property Value

Type: $au.restrictions

The upload restrictions.

Remarks

Note

All limitations specified here are checked client-side, so you should not interpret them as a reliable protection. A potentially malicious user can bypass all these limitations (by emulating Image Uploader). That is why it is highly recommended to implement server-side verification of uploaded files in addition to restrictions properties.

In other words, all limitation features discussed in this topic should be used solely for the convenience of the user. They should not be interpreted as a serious protection measure from malicious users.

See Also

Reference

Manual