method AzureBlobProvider.prototype.put
AzureBlobProvider.prototype.put(
path: string,
data: Uint8Array,
): Promise<void>

Stores an object in Azure Blob Storage, recording any content type and user metadata on the blob so a SAS URL serves it under the right type.

Azure carries the content type inside blobHTTPHeaders rather than beside the metadata, so the two land in different places on the same call.

Parameters

path: string

Object key

Object bytes

optional
options: PutObjectOptions

Object attributes to record with the bytes

Return Type

Promise<void>

Usage

import { AzureBlobProvider } from "storage-plugin/src/index.ts";