ImageUploaderFlash.BeforeSendRequest Event HTML5/Flash Uploader

Supported technologies:

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

Syntax

ASP.NET
<script type="text/javascript">
function ImageUploaderFlash1_BeforeSendRequest(){
    //...your code...
}
</script>
<aur:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="BeforeSendRequest" HandlerName="ImageUploaderFlash1_BeforeSendRequest" />
    </ClientEvents>
</aur:ImageUploaderFlash>
PHP
<script type="text/javascript">
function ImageUploaderFlash1_BeforeSendRequest(){
    //...your code...
}
</script>
<?php
    $ImageUploaderFlash = new ImageUploaderFlash("ImageUploaderFlash1");
    //...other params...
    $ImageUploaderFlash->getClientEvents()->setBeforeSendRequest("ImageUploaderFlash1_BeforeSendRequest");
    //...other params...
    $ImageUploaderFlash->render();
?>
JavaScript
function ImageUploaderFlash1_BeforeSendRequest(){
    //...your code...
}
$au.imageUploaderFlash({
    events: {
        //...other params...
        beforeSendRequest: [ImageUploaderFlash1_BeforeSendRequest],
        //...other params...
    }
})

See Also

Reference