This event fires when the current package is about to be uploaded.

Syntax

ASP.NET

<script type="text/javascript">
function ImageUploaderFlash1_BeforePackageUpload(packageIndex){
    //...your code...
}
</script>
<aur:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="BeforePackageUpload" HandlerName="ImageUploaderFlash1_BeforePackageUpload" />
    </ClientEvents>
</aur:ImageUploaderFlash>

PHP

<script type="text/javascript">
function ImageUploaderFlash1_BeforePackageUpload(packageIndex){
    //...your code...
}
</script>
<?php
    $ImageUploaderFlash = new ImageUploaderFlash("ImageUploaderFlash1");
    //...other params...
    $ImageUploaderFlash->getClientEvents()->setBeforePackageUpload("ImageUploaderFlash1_BeforePackageUpload");
    //...other params...
    $ImageUploaderFlash->render();
?>

JavaScript

function ImageUploaderFlash1_BeforePackageUpload(packageIndex){
    //...your code...
}
$au.imageUploaderFlash({
    events: {
        //...other params...
        beforePackageUpload: [ImageUploaderFlash1_BeforePackageUpload],
        //...other params...
    }
})

Parameters

packageIndex

Type: Number

The zero-based index of the package inside the current upload session.