Now I\'m getting File object by this line:
file = document.querySelector(\'#files > input[type=\"file\"]\').files[0]
I need to send thi
onInputChange(evt) { var tgt = evt.target || window.event.srcElement, files = tgt.files; if (FileReader && files && files.length) { var fr = new FileReader(); fr.onload = function () { var base64 = fr.result; debugger; } fr.readAsDataURL(files[0]); } }