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

Handle download in progress gracefully #17

@devzsolt

Description

@devzsolt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions