0
I’m having a problem in Ionic, where I use the property .files
in an id of an element <input type="file">
, in that way:
<input type="file" id="images" multiple>
this.register.images = document.getElementById('images').files;
And it works, the this.register.images
is populated with files sent to input
however, the Text Editor I use (Visual Studio Code) points out the following error:
Which in turn, when I build Ionic, it causes me an error in the compilation:
And so, I can’t continue with the application development, so:
- Is there any way to make this mistake go away?
- Or some other way to catch the
files
of a<input type="file">
?