<input id="myInput" type="file" webkitdirectory directory multiple/> // -------------------- HTMLInputElement.webkitdirectory = true; var folder = document.getElementById("myInput"); folder.onchange = function () { var files = folder.files, len = files.length, i; for (i = 0; i < len; i += 1) { console.log(files[i]); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)