Closed sschuberth closed 3 months ago
For now only custom mime types are supported, but I will add custom extensions in the future. You can use:
FilePickerFileType.Custom(
listOf(
"application/json",
"application/x-yaml",
),
),
"application/x-yaml"
Thanks, but I guess this will also allow to select *.yaml
whereas I really only want *.yml
, correct?
Yes, you can search for a specific mime type for that extension. I will try to add extensions support ASAP.
It seems like currently there's no way to only display files matching custom extensions in the picker. In my case, I'd like only
*.json
and*.yml
files to show up for picking. Is this a functionality that could be added?