ipfs / ipfs/js-ipfs-utils

Use `XHR` instead of `fetch` to provide progress updates

Open
#52 4 comments 2 reactions 1 assignee Claimed by @Gozala View on GitHub
status/in-progress
Dominant language
JavaScript
Stars
25
Forks
30
PR merge metrics
No merged PRs in 30d

Description

[`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) API does not provide an API to monitor upload progress which prevents [ipfs-webui](https://github.com/ipfs-shipyard/ipfs-webui/) from reporting any progress on file add.

There are some discussions around making progress observable:

- https://github.com/whatwg/fetch/issues/21
- https://github.com/whatwg/fetch/issues/447

It appears that [ReadableStreams](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) will at some point provide a way to do that, however no browser supports it today.

In the meantime I'd like to propose using XHR & it's progress events.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.