---
title: "Uploader.UploadFileCountChange Event ActiveX/Java Uploader "
canonical: https://www.aurigma.com/docs/us8/JA_E_Uploader_UploadFileCountChange.htm
product: "Upload Suite 8"
---

# Uploader.UploadFileCountChange Event ActiveX/Java Uploader 

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
This event fires when a user adds/removes any files to/from the upload list.

## Syntax
 
```aspx-cs
<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>
```
 
```
<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();
?>
```
 
```
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()](https://www.aurigma.com/docs/us8/JA_M_J_$au_files_count.htm.md) method. See example in the [files](https://www.aurigma.com/docs/us8/JA_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/JA_T_J_$au_files.htm.md)
- UploadFileCountChange Property[UploadFileCountChange (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_ClientEvents_UploadFileCountChange.htm.md)[uploadFileCountChange (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_events_uploadFileCountChange.htm.md)

### Manual
 
- [Using Events](https://www.aurigma.com/docs/us8/using-javascript-api.htm.md)
