You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our case /storage/emulated/0/Pictures doesn't exist.
Steps to reproduce
Check value of Environment.DIRECTORY_PICTURES then remove that directory on the device.
Call openPicker() and set width and height options.
Pick an image from gallery.
The text was updated successfully, but these errors were encountered:
aldrenalangcao
changed the title
File not found error if using Picker and Environment.DIRECTORY_PICTURES does not exist yet
'File not found' error if using Picker and Environment.DIRECTORY_PICTURES does not exist yet
Jun 10, 2019
Version
Platform
Android 8 & 9
Observed on Samsung S9+, A6+
Scenario
Using
openPicker()
and settingwidth
andheight
options set.Problem devices turned out that
Environment.DIRECTORY_PICTURES
directory doesn't exist on disk.Issue same as #283 but applies when using gallery picker only and only when compression enabled.
Expected behaviour
Using
openPicker
with width & height, expected to pick an image. Promise should resolve with image.Actual behaviour
Throws a 'File not found' exception.
Stepping through code, error occurs here:
react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/Compression.java
Line 60 in 2f6ccb0
In our case
/storage/emulated/0/Pictures
doesn't exist.Steps to reproduce
Check value of
Environment.DIRECTORY_PICTURES
then remove that directory on the device.Call
openPicker()
and setwidth
andheight
options.Pick an image from gallery.
The text was updated successfully, but these errors were encountered: