after item on queue #103
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 any kind of method that launches an event after a file is set into the uploader queue?
it will be there
Isn't that already there?
onAfterAddingFile is called here
So you could just use uploader.onAfterAddingFile if I am not mistaken?
I would like to add an onBeforeAddingFile though, to resize the image in case it is too big using the source code from @ribizli.
@bergben feel free to reuse my source.
Could you please give an example on how to subscribe to this event?It was so easy that now I'm feeling ashamed of myself...
If anyone also confused about this -
uploader.onAfterAddingFile = (fileItem) => { //Your code }Hi, Is there an example how to use onAfterAddingFile in a controller?
@bergben Was there every any update on adding onBeforeAddingFile?
@perrosen I don't know, I have lost track of it as I have implemented my own file-input library without the whole upload functionality as this library would have been overkill for my purposes...