This documentation is for the old version. Go to the latest Upload Suite docs

Uploader.BeforeSendRequest Event

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

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 (UploadSettingsUploadSettings (ASP.NET)UploadSettings (PHP)uploadSettings (JavaScript) configuration), the currently uploaded POST request can contain:

See Also

Reference

Manual