Search code examples
cordovaionic-frameworkcapacitorionic-native

Multiple document picker or input type="file" Ionic v6 cordova


This is a general question i am having regarding plugins my question is i can use

<input type="file" multiple/>
  1. currently everything is working fine with input type="file"
  2. Need to know if i face any issues that way
  3. Any one implemented input type="file"?

in the same way i can also use multiple document picker plugin but only that i can't select the mime type but rest it works the same so i used input type="file" will i face any trouble because of using html element?


Solution

  • My code looks like this:

    <input #fileInput multiple accept="" (change)="onFileChange($event)" type="file" name="file" id="file"
                  class="inputfile">
    

    Allows me to select any file type.