Uploads files based on the provided options.
import { upload } from "thirdweb/storage";const uri = await upload({ client, files: [new File(["hello world"], "hello.txt")],});
function upload( options: UploadOptions<TFiles>,): Promise<UploadReturnType<TFiles>>;
The upload options.
let options: UploadOptions<TFiles>;
let returnType: Promise<UploadReturnType<TFiles>>;
A promise that resolves to the uploaded file URI or URIs (when passing multiple files).