Dhaval2404 / ImagePicker

📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Apache License 2.0
1.53k stars 341 forks source link

mimeTypes problem #256

Open NikNikYkt opened 3 years ago

NikNikYkt commented 3 years ago

hi. I'm have problem `web.setWebChromeClient( new WebChromeClient() {

        @Override
        public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams MODE_OPEN_MULTIPLE) {

            ImagePicker.with(activity)
                    .galleryMimeTypes(  //Exclude gif images
                            mimeTypes = arrayOf(
                                    "image/png",
                                    "image/jpg",
                                    "image/jpeg"
                            ))
                    .compress(600)
                    .galleryOnly()
                    .start(web.mRequestCodeFilePicker);
            return true;
        }
    });`

Снимок экрана (30) what am I doing wrong? is it possible to enable multiple selection of files? translated with GoogleTranslate