- From: Ryan Seddon <seddon.ryan@gmail.com>
- Date: Wed, 16 Mar 2011 09:25:15 +1100
- To: Rüdiger Kurz <r.kurz@alkacon.com>
- Cc: public-webapps@w3.org
- Message-ID: <AANLkTin+fmSE9_tp9XTFxgi50vbiVB-j6NMcwJ=1XYPQ@mail.gmail.com>
WebKit or more specifically Chromium has the "webkitdirectory" attribute that can be placed on a file input. When you choose a directory it populates the FileList object with all the files within the selected directory, however there is a bug[1] at the moment. When you drag and drop a directory the FileList object is populated with the directory name and not the files within it. This hasn't been defined nor am unaware of any editor draft for this functionality. -Ryan [1] http://code.google.com/p/chromium/issues/detail?id=58977 On Tue, Mar 15, 2011 at 8:59 PM, Rüdiger Kurz <r.kurz@alkacon.com> wrote: > Hi, > > this is Rüdiger I’m a developer from Alkacon Software GmbH in Cologne, > Germany. This year we are planning to release our new version 8 of OpenCms. > Therefore we want to support our customers with a File API / FormData based > upload functionality. This new upload feature should also provide drag and > drop. > > ### > > Context: HTML5 - File API in combination with Drag and Drop > > Problem: If you drop directories/folders on to a defined "dropzone", I > assume that it is not possible to "detect" that the dropped file is a > directory. > > Target: When a user drops a directory, I want to inform the user in some > way that directories can't be handled by the "program". > > Note: I know that it should not be possible to read a whole directory > structure for security reason and that is not the point I want to make. > > Suggestion: Extend the File Interface for a attribute called directory > > interface File : Blob { > readonly attribute DOMString name; > readonly attribute DOMString directory; > readonly attribute DOMString lastModifiedDate; > }; > > directory: Has the value 'true' if the file is a directory, 'false' > otherwise > > > Kind regards > > -- > Rüdiger Kurz > > ------------------- > > Visit OpenCms Days 2011 Conference and Expo > May 9 to May 10 2011 in Cologne, Germany > http://www.opencms-days.org > > Alkacon Software GmbH - The OpenCms Experts > Rüdiger Kurz > An der Wachsfabrik 13 > 50996 Koeln, DE > > Tel: <%2B49%20%280%292236%203826-16>+49 (0)2236 3826-16 > Fax: <%2B49%20%280%292236%203826-20>+49 (0)2236 3826-20 > Email: r.kurz@alkacon.com > > http://www.alkacon.com > http://www.opencms.org > > Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 54613 > > >
Received on Tuesday, 15 March 2011 22:26:07 UTC