zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone
MIT License
174 stars 51 forks source link

How to call the uploadprogress event? #121

Open wendy-wangguoyun opened 5 years ago

wendy-wangguoyun commented 5 years ago

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

wendy-wangguoyun commented 5 years ago
    <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>
sconix commented 5 years ago

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

wendy-wangguoyun commented 5 years ago

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

Ok, thank you!