pqina / filepond

🌊 A flexible and fun JavaScript file upload library
https://pqina.nl/filepond
MIT License
15.2k stars 829 forks source link

[Bug] Upload Files open up camera on iOS #834

Closed iambryansanders closed 2 years ago

iambryansanders commented 2 years ago

Is there an existing issue for this?

Have you updated FilePond and its plugins?

Describe the bug

Whenever you click open your files on iOS devices, it opens the camera. You can't open files.

It should open to files in the iOS browser

image

Reproduction

Create a basic Vue3 install, add file-pond, set accepted file type to 'application/pdf,application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document'. It will default open a camera.

Environment

- Device: iPad, iPhone
- OS: all
- Browser: safari
rikschennink commented 2 years ago

This is probably basic file input behaviour, will close for now, you can try to reproduce with a normal file input and setting the accept and capture attributes.

iambryansanders commented 2 years ago

What should they be set to?

rikschennink commented 2 years ago

https://stackoverflow.com/questions/21523544/html-file-input-control-with-capture-and-accept-attributes-works-wrong