Backblaze allows uploading files as a single-part or as multiple parts. However, you must know the length of each file in advance, and you cannot use chunked-encoding. Single-part uploads are generally faster for smaller files. Backblaze recommends a part-size, which is automatically used.
Each part must be read into memory.
You can configure this, to a minimum of b2.auth.absoluteMinimumPartSize
.
Get a bucket by name.
const bucket = await b2.bucket("js-testing-bucket");
Get a bucket by id.
const bucket = await b2.bucket({bucketId: "BUCKET_ID"});
Call a b2 operation by name
Create a new B2 client by authorizing with the API.
import B2 from "./src/b2";
const b2 = await B2.authorize({
applicationKeyId: "KEY_ID",
applicationKey: "SECRET_KEY"
});
Generated using TypeDoc
Backblaze allows uploading files as a single-part or as multiple parts. However, you must know the length of each file in advance, and you cannot use chunked-encoding. Single-part uploads are generally faster for smaller files. Backblaze recommends a part-size, which is automatically used.
Each part must be read into memory.
You can configure this, to a minimum of
b2.auth.absoluteMinimumPartSize
.