Add BaseDirectoey.root #185
Replies: 5 comments 2 replies
-
I really need to be able to download and upload files directly to/from somewhere in user created folders on Android. There is already package, that can read/write anywhere that user permits using Android's SAF. Would you consider enabling/adding support to download anywhere? https://github.com/alexrintt/shared-storage / https://developer.android.com/training/data-storage/manage-all-files Right now it's impossible to do so with background_download. We can only move files to some predefined shared folders. Uploading is in even worse state. We have to copy the file to the scoped storage in order to not lose it, since renaming/moving makes the file disappear in the span of the uploading time. Maybe this could be worked around by adding save/read callbacks where we could handle the IO ourselves? Not sure if possible, or if that would be harder to implement. |
Beta Was this translation helpful? Give feedback.
-
Yes, I'm planning this for V8, which is what I'm worrying right now. The way this would work is:
You should still use the other |
Beta Was this translation helpful? Give feedback.
-
@FluffyDiscord I've added this to branch From the readme: You can also pass an absolute path to the downloader by using |
Beta Was this translation helpful? Give feedback.
-
Good suggestion, I'll change that |
Beta Was this translation helpful? Give feedback.
-
Included in V8, and the leading path separator is now always stripped from the |
Beta Was this translation helpful? Give feedback.
-
Allows upload/download to any destination, with the risk related to app sandbox moving to the developer.
Not ideal, but there are so many questions about this that I think it's worth adding in V8
Beta Was this translation helpful? Give feedback.
All reactions