---
title: "events.beforePackageUpload Property  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_P_J_$au_events_beforePackageUpload.htm
product: "Upload Suite 8"
---

# events.beforePackageUpload Property HTML5/Flash Uploader JavaScript

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
 
```
$au.imageUploaderFlash({
    events: {
        //...other params...
        beforePackageUpload: [],
        //...other params...
    }
})
```

```
$au.imageUploaderFlash('uploaderID').events().beforePackageUpload(value);
value = $au.imageUploaderFlash('uploaderID').events().beforePackageUpload();
```
 
### Property Value
 
Type: [$au.event](https://www.aurigma.com/docs/us8/FH_T_J_$au_event.htm.md)
 
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
 
- [ClientEvents.BeforePackageUpload PHP Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_P_ClientEvents_BeforePackageUpload.htm.md)

### Manual
 
- [Using HTML5/Flash Uploader at Runtime](https://www.aurigma.com/docs/us8/using-image-uploader-flash-at-runtime.htm.md)
