I know some trick works in Chrome:
When dropping files into drop zone you get a dataTransfer.files
object, that is a FileList
type of object, that contains all the files you dragged. Meanwhile, <input type="file" />
element has the property files
, that is the same FileList
type object.
So, you can simply assign the dataTransfer.files
object to the input.files
property.