diff --git a/projects/angular-material-fileupload/src/lib/mat-file-upload/mat-file-upload.component.ts b/projects/angular-material-fileupload/src/lib/mat-file-upload/mat-file-upload.component.ts index 5f4d6d1..ab4f58d 100644 --- a/projects/angular-material-fileupload/src/lib/mat-file-upload/mat-file-upload.component.ts +++ b/projects/angular-material-fileupload/src/lib/mat-file-upload/mat-file-upload.component.ts @@ -137,7 +137,7 @@ export class MatFileUploadComponent implements OnInit, OnDestroy { this.fileUploadSubscription.unsubscribe(); } this.uploadInProgressSubject.next(false); - this.onUpload.emit({ file: this._file, event: event }); + this.onUpload.emit({ file: this._file, event: error }); }, () => this.uploadInProgressSubject.next(false) )