Cancel file upload in one of the event methods? #505
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there a way to cancel file upload in, say
onAfterAddingFile? The documentation is very scarce.+1
I think it's working now. I'm using
item.cancel(); // where item is instance of FileItemduring upload and it's properly cancelled.
@psagan which version of ng2-file-upload are you using. this is not working ofr me, i am using version 1.2.0 in angular2
ng2-file-upload: version 1.2.1
Angular 4.4.6 with AngularCLI 1.5.4
thanx @psagan, I have upgraded to that version,
and used
still not working for me, the file is uploaded nonetheless
Same for me, I cannot cancel the upload. My version is: 1.3.0
I've tried it with:
Can anybody help please?
This works for me:
this.uploader.removeFromQueue(item);