<input type="file" id="upload">
$("#upload").change(function(e){
var fileData = e.target.files[0]
// console.log(fileData)
console.log(fileData)
console.log("name: "+fileData.name)
console.log("size: "+fileData.size)
console.log("type: "+fileData.type)
})
This Pen doesn't use any external CSS resources.