## Aurigma Image Uploader 7.0.28

# Uploader.BeforePackageUpload Event

- Collapse All Sections
- See Also
- Language Filter ( all languages )
- Supported browsers:

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

## Syntax

### ASP.NET

    <script type="text/javascript">
    function Uploader1_BeforePackageUpload(packageIndex){
        //...your code...
    }
    </script>

    <aur:Uploader ID="Uploader1" runat="server">
        <ClientEvents>
            <aur:ClientEvent EventName="BeforePackageUpload" HandlerName="Uploader1_BeforePackageUpload" />
        </ClientEvents>
    </aur:Uploader>

### PHP

    <script type="text/javascript">
    function Uploader1_BeforePackageUpload(packageIndex){
        //...your code...
    }
    </script>

    <?php
        $Uploader = new Uploader("Uploader1");
        //...other params...
        $Uploader->getClientEvents()->setBeforePackageUpload("Uploader1_BeforePackageUpload");
        //...other params...
        $Uploader->render();
    ?>

### JavaScript

    function Uploader1_BeforePackageUpload(packageIndex){
        //...your code...
    }

    $au.uploader({
        events: {
            //...other params...
            beforePackageUpload: [Uploader1_BeforePackageUpload],
            //...other params...
        }
    })

### Parameters

packageIndex

  Type: Number

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

## Remarks

Note

This event makes sense if the FilesPerPackage property is greater than or equal to 1; otherwise, this event works equally to the BeforeUpload.

## See Also

### Reference

- FilesPerPackage Property
- BeforePackageUpload Property

### Manual

- Using Events

- FilesPerPackage (ASP.NET)
- FilesPerPackage (PHP)
- filesPerPackage (JavaScript)

- FilesPerPackage (ASP.NET)
- FilesPerPackage (PHP)
- filesPerPackage (JavaScript)

- BeforePackageUpload (PHP)
- beforePackageUpload (JavaScript)