简体   繁体   English

不缓存文件的文件选择器颤动

[英]File Picker without caching Files in flutter

I want to pick files from storage using flutter, but in all libraries the picked file writes to cache immediately and returns the cached URL (/data/data/package/cache...).我想使用 flutter 从存储中挑选文件,但在所有库中,挑选的文件会立即写入缓存并返回缓存的 URL (/data/data/package/cache...)。 Sometimes it's OK, but in case of multiple files and large sized files this is not acceptable.有时可以,但在多个文件和大文件的情况下,这是不可接受的。 I have tried with image_picker,file_picker etc. Is there anything I am missing or any other libraries that can satisfy my requirement?我已经尝试过使用 image_picker、file_picker 等。有什么我遗漏的或可以满足我的要求的任何其他库吗? This is happening while testing in android.这是在android中测试时发生的。 I didn't test with iOS.我没有用iOS测试。

Use clearTemporaryFiles() method or pick files library below 2.0.0.使用 clearTemporaryFiles() 方法或选择 2.0.0 以下的文件库。 From version 2.0.0 every file is cached on Android platform.从 2.0.0 版本开始,每个文件都缓存在 Android 平台上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM