This event fires when a user adds/removes any files to/from the upload list.
<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>
<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(); ?>
function ImageUploaderFlash1_UploadFileCountChange(){ //...your code... }
$au.imageUploaderFlash({ events: { //...other params... uploadFileCountChange: [ImageUploaderFlash1_UploadFileCountChange], //...other params... } })
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.