drop directories/folders

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: +49 (0)2236 3826-16
Fax: +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 15:33:30 UTC