How to use an ion-input type=file?

I’m using a ionic-starter-pwa and I would like to let the user upload some images.

I’m a little bit confused about the doc

this page says If the value of the type attribute is "file" , so file should be a value of the type attribute but is not.

The type attribute don’t accept file value infact it’s not mentioned inside the doc and If I try to use *type=file *inside an ion-input, typescript gives me this error Type ‘“file”’ is not assignable to type ‘TextFieldTypes’.

So my question is: there is a documentation problem or I’m missing something important?