appwrite / appwrite/sdk-generator

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

Open
#820 4 comments 5 reactions 0 assignees View on GitHub
Dominant language
Twig
Stars
325
Forks
212
Avg merge
7h 36m
Merged PRs (30d)
91

Description

### 🔖 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?

- [X] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [X] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.