ImageUploaderFlash.UploadFileCountChange Event HTML5/Flash Uploader

Supported technologies: Adobe FlashHTML 5

This event fires when a user adds/removes any files to/from the upload list.

Syntax

ASP.NET
<script type="text/javascript">
function ImageUploaderFlash1_UploadFileCountChange(){
    //...your code...
}
</script>
<aur:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="UploadFileCountChange" HandlerName="ImageUploaderFlash1_UploadFileCountChange" />
    </ClientEvents>
</aur:ImageUploaderFlash>
PHP
<script type="text/javascript">
function ImageUploaderFlash1_UploadFileCountChange(){
    //...your code...
}
</script>
<?php
    $ImageUploaderFlash = new ImageUploaderFlash("ImageUploaderFlash1");
    //...other params...
    $ImageUploaderFlash->getClientEvents()->setUploadFileCountChange("ImageUploaderFlash1_UploadFileCountChange");
    //...other params...
    $ImageUploaderFlash->render();
?>
JavaScript
function ImageUploaderFlash1_UploadFileCountChange(){
    //...your code...
}
$au.imageUploaderFlash({
    events: {
        //...other params...
        uploadFileCountChange: [ImageUploaderFlash1_UploadFileCountChange],
        //...other params...
    }
})

Remarks

To determine how many files are currently selected for the upload, use the count() method. See example in the files class description. This event is useful if you implement custom buttons in HTML code, and you need to disable the Upload button when there are selected not enough files.

See Also

Reference