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
The simplest solution is to declare e
as any
e.g
document.getElementById('customimage').onchange = (e: any) => {
let files = e.target.files[0];
...
};
But you lose type information. A safer approach might be to declare your own FileEvent
type based on https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload.