Cancellable Multiple File Upload Progress in Angular

Photo by davide ragusa on Unsplash
reportProgress: true,
observe: 'events'
  • The method to get file specific urls => getUploadLinks
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
Nil Seri

Nil Seri

I would love to change the world, but they won’t give me the source code | coding 👩🏼‍💻 | coffee ☕️ | jazz 🎷 | anime 🐲 | books 📚 | drawing 🎨