zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to call the uploadprogress event?

wendy-wangguoyun opened this issue · comments

I want to do some other operations in the process of file uploading. What should I do?

    <button kendoButton [dropzone]="config" (error)="onUploadError($event)" (success)="onUploadSuccess($event)" *ngIf="!showLoad" primary="true">UPLOAD</button>
    <button kendoButton *ngIf="showLoad" primary="true">UPLOADING</button>

There are two button, I want to in the process of file upload is shown as "UPLOADING", failed to upload or upload completed is shown as "UPLOAD".
I gave an uploadprogress event, but it did not work. What should I do?

    <button kendoButton [dropzone]="config" (error)="onUploadError($event)" (success)="onUploadSuccess($event)" (uploadprogress)="onUploadprogress($event)" *ngIf="!showLoad" primary="true">UPLOAD</button>
    <button kendoButton *ngIf="showLoad" primary="true">UPLOADING</button>

At least you have the event wrong, its uploadProgress not uploadprogress.

At least you have the event wrong, its uploadProgress not uploadprogress.

Ok, thank you!