Gets or sets a maximum image width allowed for upload.
$au.imageUploaderFlash({ restrictions: { //...other params... maxImageWidth: 0, //...other params... } })Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').restrictions().maxImageWidth(value); value = $au.imageUploaderFlash('uploaderID').restrictions().maxImageWidth();
Type: Number
The maximum allowed image width (in pixels). If the value is 0
then there is no limit.
Default value is 0.
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.