---
title: "ImageUploaderFlash.UploadFileCountChange Event HTML5/Flash Uploader "
canonical: https://www.aurigma.com/docs/us8/FH_E_ImageUploaderFlash_UploadFileCountChange.htm
product: "Upload Suite 8"
---

# ImageUploaderFlash.UploadFileCountChange Event HTML5/Flash Uploader 

Supported technologies: ![Adobe Flash](https://www.aurigma.com/docs/us8/icons/flash.png)![HTML 5](https://www.aurigma.com/docs/us8/icons/html5.png)
 
This event fires when a user adds/removes any files to/from the upload list.

## Syntax
 
```aspx-cs
<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...
    }
})
```

## Remarks
 
To determine how many files are currently selected for the upload, use the [count()](https://www.aurigma.com/docs/us8/FH_M_J_$au_files_count.htm.md) method. See example in the [files](https://www.aurigma.com/docs/us8/FH_T_J_$au_files.htm.md) 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
 
- [files Class](https://www.aurigma.com/docs/us8/FH_T_J_$au_files.htm.md)
- UploadFileCountChange Property[UploadFileCountChange (PHP)](https://www.aurigma.com/docs/us8/FH_P_P_ClientEvents_UploadFileCountChange.htm.md)[uploadFileCountChange (JavaScript)](https://www.aurigma.com/docs/us8/FH_P_J_$au_events_uploadFileCountChange.htm.md)
