---
title: "ClientEvents.BeforeUpload Property  HTML5/Flash Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/FH_P_P_ClientEvents_BeforeUpload.htm
product: "Upload Suite 8"
---

# ClientEvents.BeforeUpload Property HTML5/Flash Uploader PHP

Supported technologies: ![Adobe Flash](https://www.aurigma.com/docs/us8/icons/flash.png)![HTML 5](https://www.aurigma.com/docs/us8/icons/html5.png)
 
Gets or sets an array of **BeforeUpload** event handlers.

## Syntax
 
```
public function &getBeforeUpload() {
}

public function setBeforeUpload($value) {
}
```
 
### Property Value
 
Type: **array**
 
The string containing the name of **BeforeUpload** event handler or an array of handler names.

## Remarks
 
This event fires when the upload is about to be started.
 
### Returns
 
A boolean value (`true` or `false`). If event handler returns `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 user.

## See Also
 
### Reference
 
- [$au.events.beforeUpload JavaScript Property HTML5/Flash Uploader](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)
