ImageUploaderFlash.Progress Event HTML5/Flash Uploader

Supported technologies: Adobe FlashHTML 5

This event indicates the progress of the upload.

Syntax

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

Parameters

percent

Type: Number

Percentage of the whole upload process completion.

uploadedFiles

Type: Number

Number of the completely uploaded files.

totalFiles

Type: Number

Total number of files selected to be uploaded.

Remarks

This event allows you to implement a custom upload progress indicator directly in HTML code.

See Also

Reference

Manual