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
I have found that:
<input type="file" accept="image/*"
(change)="upload($event)">
and
<ion-input type="file" accept="image/*"
(change)="upload($event)"><ion-input> or (ionChange)
does not handle the event in the same way. Therefore event.target
consists of different parameters.
I therefore did not use the ion-input
tag, but the normal angular <input>
tag with the (change)="upload($event)"
trigger.
It worked for me on Ionic 4.