angular-material-fileupload icon indicating copy to clipboard operation
angular-material-fileupload copied to clipboard

Wrong field used in case of error

Open mzielinski opened this issue 7 years ago • 1 comments

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.

mzielinski avatar May 28 '18 17:05 mzielinski

PR updating: https://github.com/nishantmc/angular-material-fileupload/blob/1d6cde9c378809367fb9fa21889c93039cb27237/src/lib/matFileUpload/matFileUpload.component.ts#L106 to 'error' as suggested.

OzBob avatar Jul 12 '21 07:07 OzBob