## Aurigma Image Uploader 7.0.15

# Uploader.BeforeSendRequest Event

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

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

## Syntax

### ASP.NET

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

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

### PHP

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

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

### JavaScript

    function Uploader1_BeforeSendRequest(){
        //...your code...
    }

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

## Remarks

Depending on the upload settings (UploadSettings configuration), the currently uploaded POST request can contain:

- a whole upload session, if FilesPerPackage is 0 and ChunkSize is 0;
- a package, if FilesPerPackage is greater than or equal to 1 and ChunkSize is 0;
- a chunk, if FilesPerPackage is 1, ChunkSize is greater than 0, and a size of the currently uploaded file exceeds the ChunkSize value.

## See Also

### Reference

- BeforeSendRequest Property

### Manual

- Sending All Files at Once or in Several Parts
- Using Events

- UploadSettings (ASP.NET)
- UploadSettings (PHP)
- uploadSettings (JavaScript)

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

- ChunkSize (ASP.NET)
- ChunkSize (PHP)
- chunkSize (JavaScript)

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

- ChunkSize (ASP.NET)
- ChunkSize (PHP)
- chunkSize (JavaScript)

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

- ChunkSize (ASP.NET)
- ChunkSize (PHP)
- chunkSize (JavaScript)

- ChunkSize (ASP.NET)
- ChunkSize (PHP)
- chunkSize (JavaScript)

- BeforeSendRequest (PHP)
- beforeSendRequest (JavaScript)