New to Kendo UI for Angular? Start a free 30-day trial
UploadProgressEvent
Arguments for the uploadprogress
event. The uploadprogress
event
fires when the files are in the process of uploading.
ts
@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');
}
}
Name | Type | Default | Description |
---|---|---|---|
files |
|
The list of files that are being uploaded. | |
percentComplete |
|
The portion that has been uploaded. |