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

Stores an object.

Parameters

path: string

Object path/key

Object bytes

optional
options: PutObjectOptions

Object attributes to record with the bytes; forwarded to the provider verbatim, and omitted entirely when the caller omits it, so a provider can tell "no attributes given" from "empty attributes given"

Return Type

Promise<void>

Usage

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