wymsee / cordova-imagePicker

Cordova Plugin For Multiple Image Selection
MIT License
407 stars 853 forks source link

ImagePicker.getPictures return error : the image file could not be opened. #270

Open Chawo opened 5 years ago

Chawo commented 5 years ago

I've picked two images from my photo library and one of them is a broken image. I get this error : the image file could not be opened.
And then it goes straight onleave and doesnt care about my second image which is not a broken image.

rahulinaction commented 3 years ago

Is there any update for this issue

johnguillerbalo commented 3 years ago

Hi, any update on this issue? We've encountered this issue on an android 10 Samsung SM-T295 but not on an android 9 Samsung SM-T385. We have already provided storage permission to the app but on the SM-T295 the error remains.

jimsleon commented 3 years ago

We are encountering the same issue with Samsung Android 10 if we targeting SDK version 29. it works fine if the application is targeting to SDK 28, @johnguillerbalo @rahulinaction did you get around the issue?

neoraltech commented 3 years ago

Hi @jimsleon , As of now, no luck getting around the issue. BUT thank you for your information about the SDK version usage.

BekirBesli commented 3 years ago

Hi; I have the same problem with the application when I switched to Android SDK 29. Android SDK 28 working. Is this about the application local directory? Can anyone help?

MELEKKUZYAKA commented 3 years ago

Hi, I have the same issue to Android SDK 29 Can anyone help?

BekirBesli commented 3 years ago

Google has a new feature on Android Q: filtered view for external storage. A quick fix for that is to add this code in the AndroidManifest.xml file:

<manifest ... >

<application android:requestLegacyExternalStorage="true" ... >
 ...
</application>

You can get detailed information from the links below. https://gitmemory.com/issue/Telerik-Verified-Plugins/ImagePicker/208/671387267 https://stackoverflow.com/questions/8854359/exception-open-failed-eacces-permission-denied-on-android

MELEKKUZYAKA commented 3 years ago

Thanks for everything. Problem solved.

herbertbruno commented 3 years ago

I am getting the following error when i add application android:requestLegacyExternalStorage="true" in the config file. AAPT: error: attribute android:requestLegacyExternalStorage not found https://github.com/Telerik-Verified-Plugins/ImagePicker/issues/212

jimsleon commented 3 years ago

I am getting the following error when i add application android:requestLegacyExternalStorage="true" in the config file. AAPT: error: attribute android:requestLegacyExternalStorage not found Telerik-Verified-Plugins#212

you might need to update compile SDK version to 29.