I’m trying to build a simple app which uploads a photograph to my server then deletes the copy held on the phone. I thought I’d got it working then realised that although Expo.ImagePicker.launchImageLibraryAsync seems to provide a URI to a file held in an accessible cache directory there’s also a copy stored elsewhere on the phone.
Is there a way to prevent two copies of the photograph being created or if not is there a way to delete the file stored in the Pictures directory (on Android - not tested yet on iOS)?
I noticed the same behavior on my android phone and what also like to know how to prevent this or at least get a path to the image stored on the phone and then delete it with the new file api.
But yeah as you can see it just writes the file out to a place in the Expo FileSystem that is accessible from the app. Do you think it would make sense to expose an option that allows you to specify if you want to delete the original file? Wondering what the default for that should be too.
Thanks for the response Nikki, I’ll keep an eye on the GitHub issue but to me it makes sense for the original to be deleted by default, mostly because that’s the current iOS behaviour.