Driver name: uploadthing
To use, you will need to install uploadthing dependency in your project:
npm i uploadthing
yarn add uploadthing
pnpm i uploadthing
bun i uploadthing
deno i npm:uploadthing
import { createStorage } from "unstorage";
import uploadthingDriver from "unstorage/drivers/uploadthing";
const storage = createStorage({
driver: uploadthingDriver({
// token: "<your token>", // UPLOADTHING_SECRET environment variable will be used if not provided.
}),
});
Options:
token: Your UploadThing API key. Will be automatically inferred from the UPLOADTHING_SECRET environment variable if not provided.