dfinity / grant-rfps

Grant RFPs and Bounties
Apache License 2.0
52 stars 11 forks source link

BNT-1: Chunked upload/download library #1

Closed domwoe closed 1 year ago

domwoe commented 1 year ago

Overview

Description

The maximum size of an ingress message to the Internet Computer, as well as the response, is currently limited to 2MB. If you want to upload/fetch files that are larger than this limit you have to slice them into chunks and assemble these chunks. This bounty targets the JS/TS client library and must be compatible with the interface of the assets canister.

Use Cases

Upload a file of arbitrary size to a canister exposing an interface compatible with the assets canister. API should allow parallel and sequential uploading.

Fetching a file of arbitrary size from a canister that exposes an interface compatible with the asset canister. Certification should be checked if the certification header is set (See Service worker code as reference)

Acceptance Criteria

References

domwoe commented 1 year ago

@sea-snake is taking this bounty based on his work on https://github.com/slide-computer/assets-js

domwoe commented 1 year ago

WIP PR: https://github.com/dfinity/agent-js/pull/603

domwoe commented 1 year ago
domwoe commented 1 year ago

Bounty has been completed by @sea-snake