JeremyFagis / dropify

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify
MIT License
972 stars 398 forks source link

Add events. #10

Open JeremyFagis opened 9 years ago

JeremyFagis commented 9 years ago

Before/after remove. Before/after drop ? Before/after show preview ?

polikin commented 9 years ago

+1

polikin commented 9 years ago

dragstart dragend dragenter dragover dragleave

ghost commented 8 years ago

i love dropify. it saves me lot of time.

the quest: in my form I need to post 2 cases:

  1. when file replaced
  2. 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.

str commented 7 years ago

@iblis76 This is the same scenario as #55

jinhduong commented 6 years ago

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))