[whatwg] Drag'n'drop uploads propsal

David Hyatt hyatt at apple.com
Wed Apr 25 16:28:08 PDT 2007

I am not sure that should be left up to some unspecified heuristic  
though.  There's also the issue of wanting to display a dropped file  
at the correct position within the DOM.

I like the idea of having a way of associating a file upload control  
with a contenteditable region and I also like the idea of having some  
way for the dropped resources associated with the control to display  
in the page.  The use case of being able to drop images into a  
contenteditable region and have them show up as <img> elements at the  
appropriate place and then get automatically uploaded somewhere is a  
really compelling one.


On Apr 25, 2007, at 4:15 PM, Ian Hickson wrote:

> On Thu, 26 Apr 2007, Kornel Lesinski wrote:
>> I've added proposal for drag'n'drop uploads to WHATWG Wiki.
>> http://wiki.whatwg.org/wiki/Drag'n'Drop_Uploads
> <input type=file> already supports this; user agents could easily just
> make drags of files into the content area automatically be sent to the
> nearest (likely only) <input type=file> element. This is really just a
> matter of getting the browser vendors to implement that UI.
> -- 
> Ian Hickson               U+1047E                ) 
> \._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _ 
> \  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'-- 
> (,_..'`-.;.'

More information about the whatwg mailing list