Implement File function

Remark get input type file via
var filePath=document.querySelector("#file").files[0];