Skip to main content

Stream support

Bundlr's SDK supports Javascript's stream API meaning there are no file upload restrictions for any device

note

Stream support is only supported in versions >=0.9.0

Upload a file

An example of uploading a file stream to Bundlr

import * as fs from "fs";
import Bundlr from "@bundlr-network/client";

const jwk = ...;

const bundlr = new Bundlr("https://node1.bundlr.network", "arweave", jwk);

const fileStream = fs.createReadStream("some_file");

const response = bundlr.upload(fileStream, { tags: [{ name: "Content-type", value: "image/png" }] });