diff --git a/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java b/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java index 9ef031215..d5834ddd1 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java +++ b/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java @@ -302,6 +302,10 @@ 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) { + intent.setType("*/*"); + intent.putExtra(Intent.EXTRA_MIME_TYPES, fileChooserParams.getAcceptTypes()); + } try { bridge.cordovaInterface.startActivityForResult(new CordovaPlugin() { @Override