【发布时间】:2022-08-02 18:07:52
【问题描述】:
我有一个 Flutter 应用程序,它使用图像选择器上传图片并跟踪文件路径,直到用户连接到互联网并同步它,但是一些 iOS 用户发现图像选择器选择的图像被删除(没有这样的文件或 Directoty) ,这通常会发生并且缓存可能会被时间删除吗?
标签: ios flutter imagepicker
我有一个 Flutter 应用程序,它使用图像选择器上传图片并跟踪文件路径,直到用户连接到互联网并同步它,但是一些 iOS 用户发现图像选择器选择的图像被删除(没有这样的文件或 Directoty) ,这通常会发生并且缓存可能会被时间删除吗?
标签: ios flutter imagepicker
正如image_picker 的文档所说:
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.
【讨论】: