method LocalStorageProvider.prototype.put
LocalStorageProvider.prototype.put(
path: string,
data: Uint8Array,
_options?: PutObjectOptions
): Promise<void>

Stores an object on disk.

Object attributes are ACCEPTED AND NOT PERSISTED: a file system stores bytes and has nowhere to record a content type, and this provider's getSignedUrl throws, so nothing could ever read one back. Documented per provider in the package README rather than silently dropped.

Parameters

path: string

Object path/key

Object bytes

optional
_options: PutObjectOptions

Accepted for interface parity; see above

Return Type

Promise<void>

Usage

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