This event indicates the progress of the upload.
<script type="text/javascript"> function Uploader1_Progress(percent, uploadedFiles, totalFiles, uploadedBytes, totalBytes){ //...your code... } </script>
<aur:Uploader ID="Uploader1" runat="server"> <ClientEvents> <aur:ClientEvent EventName="Progress" HandlerName="Uploader1_Progress" /> </ClientEvents> </aur:Uploader>
<script type="text/javascript"> function Uploader1_Progress(percent, uploadedFiles, totalFiles, uploadedBytes, totalBytes){ //...your code... } </script>
<?php $Uploader = new Uploader("Uploader1"); //...other params... $Uploader->getClientEvents()->setProgress("Uploader1_Progress"); //...other params... $Uploader->render(); ?>
function Uploader1_Progress(percent, uploadedFiles, totalFiles, uploadedBytes, totalBytes){ //...your code... }
$au.uploader({ events: { //...other params... progress: [Uploader1_Progress], //...other params... } })
Type: Number
Percentage of the whole upload process completion.
Type: Number
Number of the completely uploaded files.
Type: Number
Total number of files selected to be uploaded.
Type: Number
Amount of the completely uploaded bytes. This parameter depends on the ProgressBytesMode value:
Type: Number
Total size (in bytes) of files selected to be uploaded. This parameter depends on the ProgressBytesMode value:
This event allows you to implement a custom upload progress indicator directly in HTML code.