angular-material-fileupload
angular-material-fileupload copied to clipboard
Wrong field used in case of error
https://github.com/nishantmc/angular-material-fileupload/blob/1d6cde9c378809367fb9fa21889c93039cb27237/src/lib/matFileUpload/matFileUpload.component.ts#L106
It should be error, not event used in error handler. Because of that, there is exception in console, and event is not sent when http status is different than 2xx.
PR updating: https://github.com/nishantmc/angular-material-fileupload/blob/1d6cde9c378809367fb9fa21889c93039cb27237/src/lib/matFileUpload/matFileUpload.component.ts#L106 to 'error' as suggested.