@payloadcms/storage-uploadthing
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-beta.30 • Public • Published

Uploadthing Storage for Payload (beta)

This package provides a way to use uploadthing with Payload.

Installation

pnpm add @paylaodcms/storage-uploadthing

Usage

  • Configure the collections object to specify which collections should use uploadthing. The slug must match one of your existing collection slugs and be an upload type.
  • Get an API key from Uploadthing and set it as apiKey in the options object.
  • acl is optional and defaults to public-read.
export default buildConfig({
  collections: [Media],
  plugins: [
    uploadthingStorage({
      collections: {
        [mediaSlug]: true,
      },
      options: {
        apiKey: process.env.UPLOADTHING_SECRET,
        acl: 'public-read',
      },
    }),
  ],
})

Readme

Keywords

none

Package Sidebar

Install

npm i @payloadcms/storage-uploadthing

Weekly Downloads

500

Version

3.0.0-beta.30

License

MIT

Unpacked Size

34.7 kB

Total Files

27

Last publish

Collaborators

  • jacobsfletch
  • jmikrut
  • danribbens
  • elliotpayload
  • payloadjs