fs.addEventListener('change', function () {
for (name of this.files)
console.log(name)
}
});`
What's wrong with my computer? Windows 7;
fs.addEventListener('change', function () {
for (name of this.files)
console.log(name)
}
});`
What's wrong with my computer? Windows 7;
Please try below snipet to for file name
fs.addEventListener('change', getFileData);
function getFileData() {
const files = this.files;
for ( let i = 0; i < files.length; i++) {
console.log("file " + (i+1) +" name", files[i].name);
}
}