You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there currently or will there be an option to select a specific photo/video format, such as only png or mp4, when using PickerType.Image/Video/ImageAndVideo, so that the photo selection on Android is the same and not this File-Picker?
The text was updated successfully, but these errors were encountered:
It's possible to specify the file extension in PickerType.File(). Here is an example:
val file =FileKit.pickFile(
type =PickerType.File(extensions =listOf("png", "webp")),
)
// ORval filePicker = rememberFilePickerLauncher(
type =PickerType.File(listOf("png", "webp")),
) { file ->// Only png or webp files are allowed here
}
But currently, there is no option to specify the allowed extensions when using PickerType.Image/Video/ImageAndVideo. I searched if it can be done:
On Android, it seems possible because we can specify a custom MIME type: (doc here)
On iOS, I didn't find a way to filter out only specific types of images and videos.
We could probably add this option on Android only?
Thank you for your quick reply, it would be great if we could at least implement the feature for Android. For iOS we could simply use the normal file picker.
Is there currently or will there be an option to select a specific photo/video format, such as only png or mp4, when using PickerType.Image/Video/ImageAndVideo, so that the photo selection on Android is the same and not this File-Picker?
The text was updated successfully, but these errors were encountered: