This repository has been archived by the owner on May 31, 2023. It is now read-only.
A way to manually delete cropped temp files #67
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
iOS
Issue on iOS specific devices
Hi, first of all, thanks for making this plugin. It has proven to be very useful.
I have the following use case which is giving me a problem:
I have an app where the user constantly takes photos (which are cropped by this plugin) and they get uploaded continuously to a server, and then deleted from the phone. It works fine, except for the fact that every time a photo is taken, a temporary copy is stored in the iOS tmp directory which is not being cleared by the OS, not even when the disk is full.
I'm not sure why exactly the OS is not clearing the tmp folder (checked on various iPhones with different versions), but it could be solved if I could manually delete the temporary copy once the file is already cropped, which I can't because the plugin adds a UUID to the tmp filename.
I could delete the entire tmp folder every once in a while, but that would cause other issues with tmp files not related to this plugin.
Btw, the app works fine on Android :)
The text was updated successfully, but these errors were encountered: