wymsee/cordova-imagePicker

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

Opened this issue · 10 comments

Chawo commented

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.

Is there any update for this issue

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.

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?

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

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?

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

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" ... >
...

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

Thanks for everything. Problem solved.

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

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.