Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

File download gives no user feedback .... #526

Closed

Description

@DeepDiver1975

Steps to reproduce

  1. open dev tools, network tab, observe ...
  2. Upload a bigger file (~400MB)
  3. Click on download icon
  4. There is no user feedback until the file is fully downloaded

Expected behaviour

  • the should be immediate user feedback - best would be to popup the save dialog ...

Solution Baseline - minimal requirements - works in all supported browsers

As soon as the user hits the download button the button will mutate into a small spinning wheel to give user feedback.
It will spin until the download is finished.
This is a simplistic approach which will work on older browsers as well.
In the future we can add more advanced features.
We do not show any progress but only an endless spinner to tell the user that there is something going on

Future Solutions for browsers with more capabilities - Not part of this ticket

Activity

  1. DeepDiver1975 commented on Jan 21, 2019

    @DeepDiver1975
    ContributorAuthor

    This is related to the fact that we use fetch api to get the file and work on the blob response.
    Needs research for a different approach

  2. added
    Type:Bug
    on Jan 21, 2019
  3. scramb commented on Jan 24, 2019

    @scramb
    Contributor
  4. DeepDiver1975 commented on Jan 24, 2019

    @DeepDiver1975
    ContributorAuthor

    Alternative approach (read somewhere on the web):

    • use a one time token - generated by the server via some api
    • add this token to the url as query parameter
    • let the browser handle the url and deal with the download

    background: the current implementation is only neccessary because we cannot inject the bearer token into the browser for upcoming events ....

  5. removed this from the Sprint 7 milestone on Mar 12, 2019
  6. self-assigned this
    on Sep 4, 2019
  7. PVince81 commented on Sep 6, 2019

    @PVince81
    Contributor

    @LukasHirt closed through #1895 or is there more to do ?

  8. LukasHirt commented on Sep 6, 2019

    @LukasHirt
    Collaborator

    @LukasHirt closed through #1895 or is there more to do ?

    @PVince81 Not really sure if it can be closed. There is still the issue that the "browser" download starts after the file is downloaded in the background due to the cross-origin download. So if you leave the Phoenix the download will get cancelled. That PR is more about at least telling the user that the download is happening so he doesn't try to download the file multiple times.

  9. PVince81 commented on Sep 24, 2019

    @PVince81
    Contributor

    Ouch.

    Would using pre-signed URLs for download be a better approach, if browsers allow to trigger a download from another domain ?

  10. PVince81 commented on Sep 24, 2019

    @PVince81
    Contributor

    So if you leave the Phoenix the download will get cancelled

    This feels like pretty bad UX to me. I'm the kind of person who usually starts a few downloads, then logs out of the system and goes on to another browser tab.

  11. added this to the milestone on Sep 24, 2019
  12. LukasHirt commented on Sep 24, 2019

    @LukasHirt
    Collaborator

    Would using pre-signed URLs for download be a better approach, if browsers allow to trigger a download from another domain ?

    let's try to investigate this option - could be a nice solution.

    This feels like pretty bad UX to me

    Yes, it's bad. Problem is also that the feedback for user is not really clear since he doesn't get the download dialog/item in the bottom bar of browser directly he can think nothing happened. That's why the disabled state for the download button was implemented to prevent triggering same download multiple times.

  13. modified the milestones: , backlog on Sep 26, 2019
  14. removed their assignment
    on Sep 27, 2019
  15. DeepDiver1975 commented on Mar 10, 2020

    @DeepDiver1975
    ContributorAuthor

    @PVince81 still an issue? Feel free to close if resolved - THX

  16. DeepDiver1975 commented on Apr 23, 2020

    @DeepDiver1975
    ContributorAuthor

    Closing this - pre-signed urls are the way to go ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:p3-mediumType:Bugfeature:files

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions