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

Stores an object in S3, recording any content type and user metadata on the object itself — which is what makes a presigned URL render in a browser instead of downloading as application/octet-stream.

Parameters

path: string

Object key

Object bytes

optional
options: PutObjectOptions

Object attributes to record with the bytes

Return Type

Promise<void>

Usage

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