function uploadImage
uploadImage(
data: Uint8Array,
detectedType: string,
): Promise<string>

Upload an image to Bunny storage. Encrypts the image bytes before uploading. Returns the filename (without path) on success.

Parameters

detectedType: string

Return Type

Promise<string>

Usage

import { uploadImage } from "doc.ts";