Add download feedback - #1895
Conversation
Add downloaded files into progress queue
|
In OC core I remember that we had to introduce a magic cookie to detect whenever the download had started. Not sure why we don't need this approach here any more. Ref: https://github.com/owncloud/core/blob/master/apps/files/ajax/download.php#L56 and https://github.com/owncloud/core/blob/master/apps/files/js/files.js#L313 Maybe it was about cases where the download is opened in a separate tab/window. In the case of Phoenix we likely cannot work with such cookies, so not much point in trying to reproduce the case. |
I'm not really sure what was the reason to implement this in old UI or how this could be beneficial to Phoenix since we don't use redirection to any download URL but directly trigger the download of a file with |
|
There is also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition |
|
@LukasHirt I don't think this is a concern for now, let's move forward. |
Description
Use request in file download method, add the file that is being downloaded into progress queue and disable file actions if download action is in progress.
Related Issue
This is a temporary solution since we wanted to rework the progress handler anyway and it also doesn't solve the issue with download being done in the background so just referencing the issue instead of closing it.
Motivation and Context
When user downloads a big file he could start triggering download multiple times since he had no feedback until the file was downloaded in the background. With request, we can track the progress and add the file into the progress queue. To also prevent triggering the download again it's better to disable actions for the file that is being currently downloaded.
How Has This Been Tested?
Types of changes
Checklist: