Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Make it possible to view files without downloading them to storage #61

Open
MarcelGarus opened this issue Sep 18, 2019 · 3 comments
Open
Assignees
Labels
L: widgets Layer: Includes changes to the widgets layer T: feat Type: :tada: New Features
Milestone

Comments

@MarcelGarus
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Just like the native Android app, we should allow the user to view files without downloading them to storage.

Describe the solution you'd like
We could possibly do that by downloading them to a temporary cache directory and starting an intent to open them.

@MarcelGarus MarcelGarus added T: feat Type: :tada: New Features L: widgets Layer: Includes changes to the widgets layer labels Sep 18, 2019
@JonasWanke JonasWanke added this to the Feature parity milestone Jan 20, 2020
@MarcelGarus
Copy link
Contributor Author

Blocked by fluttercommunity/flutter_downloader#263

@MarcelGarus MarcelGarus added blocked by upstream dependency This issue cannot be resolved until another issue in an upstream dependency is resolved. and removed blocked by upstream dependency This issue cannot be resolved until another issue in an upstream dependency is resolved. labels Mar 12, 2020
@MarcelGarus
Copy link
Contributor Author

Viewing files without downloading them to storage isn't exactly possible because other apps opening the files need them to be in the external storage. But I believe by solving #60 it doesn't become apparent to the user that the files are downloaded to the storage, so this should be fine.

@JonasWanke
Copy link
Contributor

@MarcelGarus Not quite true. You can store downloaded files in your app's private directory and grant other apps temporary read access to it: https://developer.android.com/training/secure-file-sharing/share-file#GrantPermissions (This is implemented in open_file: https://github.com/crazecoder/open_file/blob/34dc2cbdeb0d49a83be59f66cbc6e1a258dc2420/android/src/main/java/com/crazecoder/openfile/OpenFilePlugin.java#L142)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
L: widgets Layer: Includes changes to the widgets layer T: feat Type: :tada: New Features
Projects
None yet
Development

No branches or pull requests

2 participants