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

[feat] Progress reporting for HTTP API in JS #2155

Open
doinkythederp opened this issue Dec 3, 2023 · 3 comments · May be fixed by #2140
Open

[feat] Progress reporting for HTTP API in JS #2155

doinkythederp opened this issue Dec 3, 2023 · 3 comments · May be fixed by #2140
Labels
enhancement New feature or request plugin: http

Comments

@doinkythederp
Copy link

Describe the problem

When using the Tauri HTTP API, I'd like to know how much of a file is downloaded so that I can create a progress bar in my app.

Describe the solution you'd like

It would be nice if the HTTP api's fetch function could take a progress callback.

Alternatives considered

Another option is to provide access to a ReadableStream object as a response type, allowing the developer to access data as it becomes available.

Additional context

No response

@FabianLars
Copy link
Member

For file uploads/downloads in v1 we have a plugin for that which also reports progress: https://github.com/tauri-apps/plugins-workspace/tree/v1/plugins/upload - this will also be faster if you want to save the file to disk anyway because it doesn't pipe the data through the IPC.

That said, i doubt that this would be added to v1, but i think it would fit nicely into v2 with the reworked api.

@FabianLars
Copy link
Member

/upstream tauri-apps/plugins-workspace

@tauri-apps tauri-apps bot added the status: upstream This issue needs to be fixed in an upstream project label Dec 4, 2023
@tauri-apps
Copy link

tauri-apps bot commented Dec 5, 2024

Upstream issue at #793 has been closed.

@tauri-apps tauri-apps bot removed the status: upstream This issue needs to be fixed in an upstream project label Dec 5, 2024
@FabianLars FabianLars transferred this issue from tauri-apps/tauri Dec 5, 2024
@FabianLars FabianLars added enhancement New feature or request plugin: http labels Dec 5, 2024
@amrbashir amrbashir linked a pull request Dec 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin: http
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants