We are using jquery fileupload to drag and drop files (and folders) from a local computer to a browser. This works great but we can\'t capture the directory structure of the
File API: Directories and System is currently a W3C Working Draft and already works in webkit, works in latest Chrome and Safari.
There is a nice file upload example, you can dropdown a directory and see it's structure: http://sapphion.com/2012/06/keep-directory-structure-when-uploading/
Awesome html5rocks tutorial: http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-dir