restrictions.minImageWidth Property HTML5/Flash Uploader JavaScript

Supported technologies: Adobe Flash

Gets or sets a minimum image width allowed for upload.

Syntax

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

Property Value

Type: Number

The minimum allowed image width (in pixels). If the value is 0, then there is no limit.

Default value is 0.

Remarks

Note

Enabling image dimension restrictions can significantly downsize number of images which can be selected for upload. It means that if, for example, a user selects 200 images and only 50 of them meet image dimension restrictions, but the user cannot select more images because Adobe Flash Player memory limit is reached. This behaviour is caused by Adobe Flash Player architecture which requires to load whole image files in memory to extract information about image size. Adobe Flash does not support unloading files from memory that leads to "out of memory" issues. In other words, if your web application requires checking image dimensions on client side, consider applying limitation on maximum number of files avialable for upload per one upload session.

See Also

Reference