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

Document image gets saved to Gallery as well #13

Closed
ktkk opened this issue Feb 24, 2023 · 2 comments
Closed

Document image gets saved to Gallery as well #13

ktkk opened this issue Feb 24, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ktkk
Copy link

ktkk commented Feb 24, 2023

Hi.

First of all, thanks for this plugin. It's as simple as it needs to be!

However, I've noticed that the paths returned by getPictures() are not the only location that the images are stored.
I'm assuming that when the plugin calls the platform native document scanner, it needs to call the image picker first, which will inevitably store the image in the device's Gallery.

This is not what I want, because the documents my users are scanning are confidential and contain sensitive data. I wouldn't want my users to access these images in their Gallery and have the opportunity to send them around.

I've noticed this behaviour only on Android. The images don't appear in the Gallery on iOS.

Any ideas on how I could prevent the image from being saved to the Gallery?

Kind regards.

@CodeRedDev
Copy link

The file's path is set by the Android dependency com.websitebeaver:documentscanner to getExternalFilesDir(Environment.DIRECTORY_PICTURES). It could probably be copied to a more appropriate location inside of this package's Android plugin.

@vicajilau
Copy link
Collaborator

As you can see, this incident does not apply to version 1.1.4. Thank you so much for using cunning_document_scanner.

Screen_recording_20231112_165030.webm

@vicajilau vicajilau self-assigned this Nov 12, 2023
@vicajilau vicajilau added the bug Something isn't working label Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants