Replies: 1 comment 3 replies
-
That's an interesting idea, and seems feasible. You would set the I'm labeling this as an enhancement - it will take me time to get to this though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you want to upload a file that was provided to you by the Storage Access Framework, you receive a content:// URI, which currently cannot be handled by Dart. The current accepted solution is to cache the file in the application directory and then upload it. This is not a great solution because devices with low storage space will not be able to upload files.
The content:// URIs are unsupported by Dart which means theoretically you could pass a URI to the
enqueue
orupload
methods (instead ofdirectory
andfilename
) and do the actual file reading in Android-specific code, without caching. Alternatively, you could use a package like saf_stream, which provides a readable byte stream of a SAF file and pass that to the upload methods.Beta Was this translation helpful? Give feedback.
All reactions