Subscribe on upload file #366
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?
Hi,
Is there any way that I can subscribe on upload method when is upload finished?
Thank you
@askurdjel I sort of achieved this by simply overriding the
onCompleteproperty of the file-item class (file-item.class)Here's a quick example:
Hope this helps!
This worked for me.
I, too, wanted to subscribe to the response...
I found uploading a file is relatively easy to get going, but what happens if there's a duplicate? In my case, I want to notify the user rather than making the file unique or overwriting w/o the user's consent. I thought subscribe would be the way to go, but I found onCompleteItem to be useful.
I did something more along the lines of:
and inside my view (*ngFor="let item of uploader.queue") I can do something like
This might be helpful to others.