Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress notifications on file download #272

Open
SpringsTea opened this issue Dec 4, 2019 · 1 comment
Open

Progress notifications on file download #272

SpringsTea opened this issue Dec 4, 2019 · 1 comment

Comments

@SpringsTea
Copy link

I have been using the node file connector for my implementation. I am confused how downloading one file, and downloading multiple folders differ greatly. When one file is requested, getResourceById is used, and when multiple files are requests, downloadResources is used.

Thats all fine, but how they are called are vastly different. Both downloadResources and uploadFileToId are called through a capabilities handler, and have onProgress passed as a parameter, so operation progress can be displayed. But single file download doesn't have this, it just gets the resource id, and makes the file request without the involvement of any capabilities.

Basically, I'm just trying to get the progress notifications to appear the way it does when you download a multiple file zip. capabilities/download.js has code to handle downloading a single resource, but it's never used as far as I can tell, since single file downloading falls back on api.js

@abaliunov-sc
Copy link
Contributor

abaliunov-sc commented May 4, 2021

Browsers show the download progress for a single file anyway. This is their standard functionality.

For a collection of files, we don't show the download progress. We show archiving progress because the browser does not know how to make it. After this, the browser shows the download progress.

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

No branches or pull requests

2 participants