I have a problem with ionic, in which I use the .files
property in an id of a <input type="file">
element, like this:
<input type="file" id="images" multiple>
this.register.images = document.getElementById('images').files;
And it works, this.register.images
is populated with files uploaded in input
however, the Text Editor I use (Visual Studio Code) points to the following error:
What,inturn,whenIbuildtheionic,itgivesmeacompileerror:
Andso,Icannotcontinuedevelopingtheapplication,so:
- Isthereanywayforthiserrortoaddup?
- Orsomeotherwaytoget
files
from<inputtype="file">
?