This event fires when the current package is about to be uploaded.
<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>
<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(); ?>
function ImageUploaderFlash1_BeforePackageUpload(packageIndex){ //...your code... }
$au.imageUploaderFlash({ events: { //...other params... beforePackageUpload: [ImageUploaderFlash1_BeforePackageUpload], //...other params... } })
Type: Number
The zero-based index of the package inside the current upload session.