Docs

upload

Uploads files based on the provided options.

Example

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

Parameters

Returns

A promise that resolves to the uploaded file URI or URIs (when passing multiple files).