How to drop a file?


(Mirkotebaldi) #1

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.


(Alexander Makarov) #2

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