DocumentPicker multiple MIME types
Seb
The docs mention the "type" as "string | string[]" but when using an array I'm facing : "Error: type must be a string"
Wodin
Merged in a post:
Support for Multiple Mime Types in DocumentPicker
Parth Tamane
I want to allow the user to select and upload only Word Document, PDF, Excel Sheets and Images. I tried this await DocumentPicker.getDocumentAsync({ type: "image/png,image/jpeg" }); but I guess multiple MIME types aren't supported yet.
Wodin
Merged in a post:
DocumentPicker multiple MIME types
Abhishek Patel
I'm just wondering why it's not possible to add multiple MIME types for DocumentPicker, but only string? For example currently I'm developing an app, where user should be able to choose specific file types - jpg, png, and pdf.
April Mintac Pineda
There's a similar post on 2018 https://expo.canny.io/feature-requests/p/documentpicker-multiple-mime-types
MyCloudVIP com
could not agree more. Flexibility plays an important role for UX these days, so it is a MUST have
Abhishek Patel
would love to see this!
Michael Ford
Yep - had to drop this in favour of another native solution - forced me to eject expo.