When I pick images using this code:
val imagePicker = rememberFilePickerLauncher(type = FileKitType.Image) {
// AndroidFile.UriWrapper => content://media/picker/0/com.android.providers.media.photopicker/media/18
val fileName = it.name
}
The fileName will return numbers, e.g. 18.jpg which is the media ID. If we receive this kind of URI, we should retrieve the file name from MediaStore.MediaColumns.DISPLAY_NAME. I'm running Android API 36.