Skip to content

How do I create sub folders/directories with PayloadCMS media uploads and the Vercel blob storage? #11934

Answered by Dince-afk
Dince-afk asked this question in Q&A
Discussion options

You must be logged in to vote

Stack is not dead yet. I got the answer there.

Using the prefix lets you create directories.

vercelBlobStorage({
      enabled: true,
      collections: {
        media: {
          prefix: 'cms_images',
        },
      },
      token: process.env.BLOB_READ_WRITE_TOKEN,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dince-afk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant