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)
Core
DOM: Copy & Paste and Drag & Drop
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
Comment 1•19 years ago
|
||
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
Updated•16 years ago
|
QA Contact: drag-drop
Comment 2•15 years ago
|
||
https://developer.mozilla.org/En/DragDrop/DataTransfer
https://developer.mozilla.org/en/using_files_from_web_applications#Selecting_files_using_drag_and_drop
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•