Introduction to HTML5 file API
Introduction to HTML5 fileSystem API
[not part of W3C ]
Full Access to any file on the client HD
API Objects:
FileReader includes four options for reading a file, asynchronously:
<input type="file" id="..." name="..." multiple webkitdirectory/>
// Add the event listener to the input type="file"
document.querySelector('#id').addEventListener('change',
function(e){
var i, files;
// FileList object. list of the selected files
files = e.target.files;
// Extract the information we can from the files/folder
for (i = 0, f; f = files[i]; i++) {
// f.name
// f.type
// f.size
// f.lastModifiedDate.toLocaleDateString()
}
...
}, false);
/