This event fires when the current POST request is about to be uploaded.
<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>
<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(); ?>
function Uploader1_BeforeSendRequest(){ //...your code... }
$au.uploader({ events: { //...other params... beforeSendRequest: [Uploader1_BeforeSendRequest], //...other params... } })
Depending on the upload settings (UploadSettings configuration), the currently uploaded POST request can contain:
0
and ChunkSize is 0
;1
and ChunkSize is 0
;1
, ChunkSize is greater than 0
, and a size of the
currently uploaded file exceeds the ChunkSize value.