Search code examples
ionic4capacitor

Ionic 4 Capacitor Choose file for Android and IOS


I was developing an app in ionic 4 using Capacitor for android and IOS. I can't find any way to choose a file using Capacitor's api. I had looked for method in the Capacitor's "Filesystem" api (https://capacitor.ionicframework.com/docs/apis/filesystem/) but could not find any that would allow me th choose file. Is there any other way I can choose file from android or IOS device using ionic 4 with Capacitor?


Solution

  • Just use an input with type file

    <input type="file" name="myFile">