I\'m currently working on a project at work using the HTML5 Drag and Drop API to provide added functionality including dragging items in and out of browsers. I am currently
WebKit, and hence Chrome, is quite restrictive on when you can call getData
. You're not allowed to do it inside dragstart or dragover. I think this is the canonical bug.
Referencing this answer:
The data is only available on drop, this is a security feature since a website could grab data when you happen to be dragging something across the webpage.