Uploader.UploadFileCountChange Event ActiveX/Java Uploader

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

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

Syntax

ASP.NET
<script type="text/javascript">
function Uploader1_UploadFileCountChange(){
    //...your code...
}
</script>
<aur:Uploader ID="Uploader1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="UploadFileCountChange" HandlerName="Uploader1_UploadFileCountChange" />
    </ClientEvents>
</aur:Uploader>
PHP
<script type="text/javascript">
function Uploader1_UploadFileCountChange(){
    //...your code...
}
</script>
<?php
    $Uploader = new Uploader("Uploader1");
    //...other params...
    $Uploader->getClientEvents()->setUploadFileCountChange("Uploader1_UploadFileCountChange");
    //...other params...
    $Uploader->render();
?>
JavaScript
function Uploader1_UploadFileCountChange(){
    //...your code...
}
$au.uploader({
    events: {
        //...other params...
        uploadFileCountChange: [Uploader1_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

Manual