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
The returned photo object contains the "path" property: file:///data/user/0/io.ionic.starter/cache/JPEG_20210624_085255_5425877611720472711.jpg
This path I use to delete the file, when needed, using the Filesystem.deleteFile(), which indeed deletes the file. But if I check my DCIM/Camera folder the image is still there and showing in my gallery.
Expected Behavior
If the option saveToGallery is set to false, then it shouldn't save the image, or it shouldn't create a permanent copy.
I've sent a PR that deletes unneeded images #563, but not sure if it would solve your problem, looks like that on some devices the camera app creates a copy of the file. Sadly there is nothing we can do about it.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
Bug Report
Plugin(s)
@capacitor/camera: 1.0.1
Capacitor Version
Platform(s)
Android
Current Behavior
When you use the Camera.getPhoto() function with the options:
The returned photo object contains the "path" property: file:///data/user/0/io.ionic.starter/cache/JPEG_20210624_085255_5425877611720472711.jpg
This path I use to delete the file, when needed, using the Filesystem.deleteFile(), which indeed deletes the file. But if I check my DCIM/Camera folder the image is still there and showing in my gallery.
Expected Behavior
If the option saveToGallery is set to false, then it shouldn't save the image, or it shouldn't create a permanent copy.
Code Reproduction
I created a simple repo ionic + capacitor: https://github.com/pabloservin/capacitor-camera-test
There's a button in the home page that takes a picture and after 2.5 seconds the image is deleted using Filesystem.
Other Technical Details
Additional Context
Related or similar issues:
#431
#212
https://stackoverflow.com/questions/63398598/ionic-capacitor-camera-delete-image
The text was updated successfully, but these errors were encountered: