Docs

upload

Uploads files based on the provided options.

Example

import { upload } from "thirdweb/storage";
const uris = await upload({
client,
files: [new File(["hello world"], "hello.txt")],
});

Parameters

Returns

A promise that resolves to an array of uploaded file URIs.