Skip to content

🚀 Feature: add progress callback on Storage API for downloads (getFileDownload and getFileView) #820

Open

Description

@frmatthew

🔖 Feature description

Just as Storage.createFile has an optional onProgress callback, it would be very helpful for getFileDownload and getFileView to have an onProgress callback also for the download progress.

Alternatively, the API could allow plugging in custom http clients (such as Dio?) which already have hooks for tracking request/response progress.

🎤 Pitch

This would allow dynamic updating of the UI in response to downloads, especially for larger files. an onProgress callback could update a ProgressBar, indicate to the user the estimated wait time for the download to complete, etc.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. frmatthew commented on Jul 14, 2022

    @frmatthew
    Author

    A workaround for public files is to create the URL manually (see appwrite/sdk-for-flutter#63) and use a different http client altogether which tracks progress. But this won't work for files requiring authentication.

  2. sgruhier commented on Jan 18, 2023

    @sgruhier

    any update on this? Having public files isn't a valid and secure approach. Thanks

  3. mariomurrent-softwaresolutions commented on Feb 2, 2023

    @mariomurrent-softwaresolutions

    🔖 Feature description

    Just as Storage.createFile has an optional onProgress callback, it would be very helpful for getFileDownload and getFileView to have an onProgress callback also for the download progress.

    Alternatively, the API could allow plugging in custom http clients (such as Dio?) which already have hooks for tracking request/response progress.

    🎤 Pitch

    This would allow dynamic updating of the UI in response to downloads, especially for larger files. an onProgress callback could update a ProgressBar, indicate to the user the estimated wait time for the download to complete, etc.

    👀 Have you spent some time to check if this issue has been raised before?

    • I checked and didn't find similar issue

    🏢 Have you read the Code of Conduct?

    Did the progress for the file work for you? I did not in my case

  4. thuongvovan commented on Dec 25, 2023

    @thuongvovan

    I also encounter the same issue, I cannot check the progress of the large file download.
    Please consider to add this feature!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions