Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Handle download in progress gracefully #17

Open
devzsolt opened this issue Aug 30, 2017 · 0 comments
Open

Handle download in progress gracefully #17

devzsolt opened this issue Aug 30, 2017 · 0 comments

Comments

@devzsolt
Copy link

If a file is not "on disk" in Nextcloud but it needs to be downloaded from Sia network, the app always returns a meaningless textfile regardless of the mime type of the real file.
This behavior causes broken operations in Nextcloud (gallery view, PDF preview, save multiple files as a zip, etc.)
It's a major UX problem that needs to be addressed.
I see this simplification in the code here:

return fopen('data://text/plain,' . $path . ' is currently being downloaded from Sia.', $mode);

but I'm not sure how could Nextcloud handle it in an async way, showing a load indicator instead of providing a fake file instantly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant