UploadProgressEvent

Arguments for the uploadprogress event. The uploadprogress event
fires when the files are in the process of uploading.

@Component({
   selector: 'my-upload',
   template: `
   <kendo-upload
     [saveUrl]="uploadSaveUrl"
     [removeUrl]="uploadRemoveUrl"
     (uploadProgress)="uploadProgressEventHandler($event)">
   </kendo-upload>
   `
 })
 export class UploadComponent {
   uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
   uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint

   uploadProgressEventHandler(e: UploadProgressEvent) {
     console.log(e.files[0].name + ' is ' + e.percentComplete + ' uploaded');
   }
 }

files Array<FileInfo>

The list of files that are being uploaded.

percentComplete Number

The portion that has been uploaded.

Constructors

UploadProgressEvent (files: Array<FileInfo>, percentComplete: Number)

Constructs the event arguments for the uploadprogress event.

Parameters

files Array<FileInfo>

The list of files that are being uploaded.

percentComplete Number

The portion that has been uploaded.