I came across this page and then found out that this is only possible with javascript (without plugins like ActiveX or Flash), but only in chrome:
https://plus.google.com/+AddyOsmani/posts/Dk5UhZ6zfF3
Basically, they added support for the new attribute in the input element of the "webkitdirectory" file. You can use it as follows:
<input type="file" id="ctrl" webkitdirectory directory multiple/>
It allows you to select directories. The multiple attribute is a good rollback for browsers that support multiple file selection but not directory selection.
When you select a directory, files are accessible through the dom object for the control (document.getElementById ('ctrl')), just like with several attributes. Browsers recursively add all the files in the selected directory to this list.
You can already add a directory attribute if it will be standardized at some point (could not find information about it)
bwindels May 27 '13 at 14:03 2013-05-27 14:03
source share