Closed Bug 347178 Opened 19 years ago Closed 15 years ago

Drag And Drop files on Window/Document event handler for Javascript (DOM0)

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 503598

People

(Reporter: danny.listas, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 Would be nice if there is any way to set an event handler for receiving Dropped files inside the Window/Document. This feature can be used to extends "usability" on uploading files. For INPUT FILES the drop of a file inside its text box only has to put its full path (today its block the drop). But any DOM object can manipulate a file drop event, like this: <div id='drag-your-file-here-to-upload' onDragFile='dragEventHandler()'>Drag Here!</div> or inside javascript code: function somefunc() { //... element.ondragfile = dragEventHandler; //... } function dragEventHandler(event) { // ... } Reproducible: Couldn't Reproduce Actual Results: Enhancement Expected Results: Enhancement Enhancement
See also bug 50660, which asks for file upload controls to accept dragged files, and has roughly the same security implications.
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: drag-drop
You need to log in before you can comment on or make changes to this bug.