---
title: "ImageUploaderFlash.BeforeUpload Event HTML5/Flash Uploader "
canonical: https://www.aurigma.com/docs/us8/FH_E_ImageUploaderFlash_BeforeUpload.htm
product: "Upload Suite 8"
---

# ImageUploaderFlash.BeforeUpload 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 the upload is about to be started.

## Syntax
 
```aspx-cs
<script type="text/javascript">
function ImageUploaderFlash1_BeforeUpload(){
    //...your code...
}
</script>
```

```
<aur:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="BeforeUpload" HandlerName="ImageUploaderFlash1_BeforeUpload" />
    </ClientEvents>
</aur:ImageUploaderFlash>
```
 
```
<script type="text/javascript">
function ImageUploaderFlash1_BeforeUpload(){
    //...your code...
}
</script>
```

```
<?php
    $ImageUploaderFlash = new ImageUploaderFlash("ImageUploaderFlash1");
    //...other params...
    $ImageUploaderFlash->getClientEvents()->setBeforeUpload("ImageUploaderFlash1_BeforeUpload");
    //...other params...
    $ImageUploaderFlash->render();
?>
```
 
```
function ImageUploaderFlash1_BeforeUpload(){
    //...your code...
}
```

```
$au.imageUploaderFlash({
    events: {
        //...other params...
        beforeUpload: [ImageUploaderFlash1_BeforeUpload],
        //...other params...
    }
})
```
 
### Return Value
 
Type: **Boolean**
 
If `false` (or zero), the upload is cancelled. Otherwise, upload begins immediately after the event handler finishes. This makes the event handler convenient for validating additional data provided by a user.

## See Also
 
### Reference
 
- BeforeUpload Property[BeforeUpload (PHP)](https://www.aurigma.com/docs/us8/FH_P_P_ClientEvents_BeforeUpload.htm.md)[beforeUpload (JavaScript)](https://www.aurigma.com/docs/us8/FH_P_J_$au_events_beforeUpload.htm.md)

### Manual
 
- [Using HTML5/Flash Uploader at Runtime](https://www.aurigma.com/docs/us8/using-image-uploader-flash-at-runtime.htm.md)
