Cancellable Multiple File Upload Progress in Angular

Photo by davide ragusa on Unsplash
reportProgress: true,
observe: 'events'
cancelUpload(): void {
if (this.sharingSubscription) {
this.sharingSubscription.unsubscribe();
}
if (this.uploadSubscription) {
this.uploadSubscription.unsubscribe();
}
if (this.forkJoinSubscription) {
this.forkJoinSubscription.unsubscribe();
}
this.isUploadFailure = true;
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store