---
title: "ClientEvents.BeforePackageUpload Property  HTML5/Flash Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/FH_P_P_ClientEvents_BeforePackageUpload.htm
product: "Upload Suite 8"
---

# ClientEvents.BeforePackageUpload 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 **BeforePackageUpload** event handlers.

## Syntax
 
```
public function &getBeforePackageUpload() {
}

public function setBeforePackageUpload($value) {
}
```
 
### Property Value
 
Type: **array**
 
The string containing the name of **BeforePackageUpload** event handler or an array of handler names.

## Remarks
 
This event fires when the current package is about to be uploaded.
 
### Parameters
 
 - packageIndex
     - zero-based index of the package (i.e. request) inside the current upload session.

## See Also
 
### Reference
 
- [$au.events.beforePackageUpload JavaScript Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_J_$au_events_beforePackageUpload.htm.md)

### Manual
 
- [Using HTML5/Flash Uploader at Runtime](https://www.aurigma.com/docs/us8/using-image-uploader-flash-at-runtime.htm.md)
