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

Stores an object in GCS, recording any content type and user metadata on the object itself so a signed URL serves it under the right type.

Parameters

path: string

Object key

Object bytes

optional
options: PutObjectOptions

Object attributes to record with the bytes

Return Type

Promise<void>

Usage

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