Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saved file not in the specified folder #380

Open
prosperz31 opened this issue Aug 16, 2021 · 1 comment
Open

Saved file not in the specified folder #380

prosperz31 opened this issue Aug 16, 2021 · 1 comment

Comments

@prosperz31
Copy link

Expected Behavior

I ask the ImagePicker to save in : /storage/emulated/0/Android/media/fr.piscarius.piscarius/PISCARIUS/

    ImagePickerSavePath savePath = new ImagePickerSavePath(context.getExternalMediaDirs()[0] + File.separator + "PISCARIUS", false);
    config.setSavePath(savePath);

Actual Behavior

In the return of the ImagePicker, the URI is correct and the image is retrieve through that in the ImagePicker. If I checked the Image.getPath it is good also. But if I go through an explorer, no file is created on /storage/emulated/0/Android/media/fr.piscarius.piscarius/PISCARIUS/ but it is created in /storage/emulated/0/Android/Pictures.

Steps to Reproduce the Problem

see above

Specifications

  • Image Picker Version: 3.0.0-beta4
  • Android OS: 11 (API 30)
  • Phone: Emulator
@agoodcoolman
Copy link

agoodcoolman commented Feb 14, 2023

android-image-picker 3.0.0
Android 11

in ImagePickerSavePath.kt , The member variable must be setted

Environment.getExternalStorageDirectory().absolutePath + File.separator.toString() + Environment.DIRECTORY_DCIM

or

Environment.getExternalStorageDirectory().absolutePath + File.separator.toString() + Environment.DIRECTORY_PICTURES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants