I am using the ImagePicker (https://pub.dev/packages/image_picker) plugin to record videos and I noticed the recorded videos are stored in app's cache folder (example: /data/user/0/com.example.app/cache/999b6a18-114b-4fd3-b089-09ce4574bf765726458033916036262.mp4")
In the plugin docs it says
Note: Images and videos picked using the camera are saved to your application's local cache, and should therefore be expected to only be around temporarily. If you require your picked image to be stored permanently, it is your responsibility to move it to a more permanent location.
Here's what I am wondering about:
- How long will the files remain in the cache folder? (I am concerned on too many video files being accumulated)
- What is the mechanism on the cache data? does the Android/IOs system has some limitations on the size of the cache folder?
- If there is some sort of limitations, what will happen if users record more videos will the system delete the older videos to make room?
Overall would you guys recommend that I delete the recorded cached video immediately after processing it (Example uploading it to my server)?