Load all files from a directory in JavaScript / HTML5

I want my site visitors to select a directory with files and then process them in JavaScript. I know how to let them select many individual files, but not entire directories, which is very important here.

How can I do that? File processing must be done in JavaScript. It should work in newest Firefox, Chrome and IE if possible.

I can't tell them to zip the files and then pick zip as it could be several GB of files to process.

Maybe Flash can help?

+3


source to share


1 answer


Found looking for an example myself, but I haven't researched the source yet. Works in Chrome on Windows 8.1. Hope this helps someone.

HTML5 Photo Browser for Local Files and Directories



He uses:

\ <input type = "file" id = "file_input" webkitdirectory = "directory =" ">

+1


source







All Articles