How to drop a file?

I’d like to allow user to Drop files from his/her desktop into a form, to force a create an auto-upload function.

I tryied to add a droppable class to a div, and then to detect some events, like activate, but when dropping file from the desktop, the browser force a download of the same file (!!!?!!?!) instead of fire the jquery-ui events of ‘droppable’ component.

Are you using jQueryUI? Overall you need to use JavaScript file API.