Detect mime type when picking a file
The file picker will now try to detect the mime type of the selected file. If it cannot be detected, it will fallback to `application/octet-stream`.
This commit is contained in:
committed by
Benoit Marty
parent
f852fb4f82
commit
255d786b70
+1
-1
@@ -25,7 +25,7 @@ interface PickerProvider {
|
||||
@Composable
|
||||
fun registerFilePicker(
|
||||
mimeType: String,
|
||||
onResult: (Uri?) -> Unit
|
||||
onResult: (uri: Uri?, mimeType: String?) -> Unit,
|
||||
): PickerLauncher<String, Uri?>
|
||||
|
||||
@Composable
|
||||
|
||||
Reference in New Issue
Block a user