dropify
dropify copied to clipboard
Add events.
Before/after remove. Before/after drop ? Before/after show preview ?
+1
dragstart dragend dragenter dragover dragleave
i love dropify. it saves me lot of time.
the quest: in my form I need to post 2 cases:
- when file replaced
- when file removed the problem is that in both cases input.file sends empty data and system cannot understand what I want. solution: add additional data to any case (input.hidden) to do that I need more events. particularly in the "setFilename" function.
it was an example of why people may need additional actions.
@iblis76 This is the same scenario as #55
I think simplest way is after the dropify element already initialized, we looking for class .dropify-remove and bind click event into it
$('.dropify').find('.dropify-remove').on('click',(e)=>callback(e))