JSFiddle - React, Tailwind, and code Playground
by Alexey Demin
HTML
<input type="file" id="upload" />
JavaScript
console.clear();
document.getElementById('upload').addEventListener('change', function(e){
for(var i = 0; i < this.files.length; i++) {
console.log(this.files[i]);
}
});