pqina / vue-filepond

🔌 A handy FilePond adapter component for Vue
https://pqina.nl/filepond
MIT License
1.92k stars 128 forks source link

Filepond on iOS only open camera #206

Closed rrrrando closed 3 years ago

rrrrando commented 3 years ago

For some odd reason when i want to use ios device to upload images the device goes straight to camera and doesn't give me the option to choose "Browse" or "Photos". But it works just fine on the filepond website. What am i missing?

rrrrando commented 3 years ago

Ok got it fixed, seems like __unset__ value of capture-method gets passed on to the input and because of that the field defaults to environment and opens the camera. Happens with Vue3/Vite. I'll close this and fiddle with it a little and create a PR if i can.

dorinoltean commented 3 years ago

I use vue-filepond@7.0.0 and got the same problem on Android Chrome.

setting :captureMethod="null" on <file-pond> did not rander the html capture attribute anymore.

rrrrando commented 2 years ago

I got it working by setting :capture-method="null"