diff --git a/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java b/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java index 23854b7b7e..a7e34dbfae 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java +++ b/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java @@ -414,7 +414,7 @@ private void showFilePicker(final ValueCallback filePathCallback, FileCho if (fileChooserParams.getMode() == FileChooserParams.MODE_OPEN_MULTIPLE) { intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); } - if (fileChooserParams.getAcceptTypes().length > 1) { + if (fileChooserParams.getAcceptTypes().length > 1 || intent.getType().startsWith(".")) { String[] validTypes = getValidTypes(fileChooserParams.getAcceptTypes()); intent.putExtra(Intent.EXTRA_MIME_TYPES, validTypes); if (intent.getType().startsWith(".")) {