compose-multiplatform-file-picker icon indicating copy to clipboard operation
compose-multiplatform-file-picker copied to clipboard

Some extensions are not found

Open feliperce opened this issue 1 year ago • 1 comments

Some file extensions like .aab, .keystore or .jks are not found by File Picker on Android. This problem occurs on Android, I tested several extensions in the same code, I also tested the library sample code, .aab, .jks and .keystore extensions are not found.

Desktop works

feliperce avatar Jun 16 '24 13:06 feliperce

The getMimeTypeFromExtension method searches for registered extensions, as there is no such extension in the MimeMap, so it returns empty.

To "solve" the problem, I changed the code to remove the extension filter if none were provided: https://github.com/Wavesonics/compose-multiplatform-file-picker/pull/143

feliperce avatar Jun 16 '24 17:06 feliperce