I am trying to access the value of the input file from my ionic 2 application but still I\'m facing the issue of property files does not exist on type \'EventTarget\'. As it
You can cast it as a HTMLInputElement:
document.getElementById("customimage").onchange = function(e: Event) { let file = (e.target).files[0]; // rest of your code... }
Update:
You can also use this:
let file = (e.target as HTMLInputElement).files[0];