Closed pigpudle closed 1 year ago
Hello!
In a general way, I also need to pick files based on the extension rather that the mime type (especially because of Apple mime types), or at least a less generic mime types coming from apple like "mime-db".
In my project, I need to select text files but only ".txt", ignoring ".php" and all other "public.plain-text" files that Apple sees.
Right now, I need to do a check after the file has been selected and prompt to the user that the extension is not valid (for our system), and it leads to un-comprehensive behaviour from the app to the user (for the user, why ".php" files where not grayed out while ".mp4" were?).
@pigpudle try setting type as public.json
for iOS.
I've found newer documentation about type identifiers in Apple: https://developer.apple.com/documentation/uniformtypeidentifiers/system-declared_uniform_type_identifiers
Hello, closing as answered,
thank you
Question
Hi! I'd wanted to allow to pick only files with
.json
extension. How to achieve that? I haven't found a JSON file here as mentioned in the docs. I also tried to setjson
type for options, but this leads to all files to be greyed out. Thanks.