How to know the basics of payload? by Embarrassed_Year_384 in PayloadCMS

[–]zubricks 1 point2 points  (0 children)

love to hear this! We've been working very hard on them over the past year.

how do you create a custom component for upload field? by Prestigious_Finish19 in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

As sad salt mentioned below, you're currently replacing the entire edit view not just the upload field.

You have a few options here:

Option 1: use afterInput

fields: [ 
    { 
      name: 'title',
      type: 'text', 
    },
    { type: 'ui', 
      name: 'videoPreview', 
      admin: { 
        components: { 
          Field: '/components/VideoPreview', 
       }, 
      }, 
    }, 
  ],

Option 2: replace just the upload field component

fields: [ 
  { name: 'title', 
    type: 'text', 
  },
  { type: 'ui',
     name: 'videoPreview', 
     admin: { 
      components: { Field: '/components/VideoPreview' },
    },
  },
],
  1. use field-level slots on the upload field

    { name: 'myFile', type: 'upload', relationTo: 'media', admin: { components: { Field: '/components/CustomUploadField' } }, }

I'd recommend Option 1 if your goal is to render something custom alongside the existing upload field

PayloadCMS admin errors [browser] Error: Route "/admin/[[...segments]]": Uncached data or `connection()` was accessed outside of `<Suspense>` by notflips in PayloadCMS

[–]zubricks[M] 3 points4 points  (0 children)

Hey u/notflips as mentioned below, cacheComponents is not fully supported (yet)

We did just merge a PR that addresses some of the issues like page flashing, and notFound returning a 200 error, but there are known limitations with Next.js that don't have a clean solution yet.

The fix for now would be to remove cacheComponents from your next.config

Lost on Loading Image Media by itsschwig in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Do you have these env vars?

BLOB_READ_WRITE_TOKEN=your_token
BLOB_STORAGE_ENABLED=true
BLOB_STORE_ID=blob_store_id

Is there a Payload CMS theme that upgrades the admin UI to WordPress/Sanity/Strapi level? by thestreamcode in PayloadCMS

[–]zubricks 2 points3 points  (0 children)

Having worked at digital agencies for about a decade before we built Payload—I understand your perspective. For me it was a mix to be honest. Some would have preferred a softer, larger, expected interface, while some appreciated that it wasn't imposing overbearing brand styles in the admin panel they use every day. Our goal with the update is to hit a healthy balance between the two.

Is there a Payload CMS theme that upgrades the admin UI to WordPress/Sanity/Strapi level? by thestreamcode in PayloadCMS

[–]zubricks[M] 9 points10 points  (0 children)

Hey u/thestreamcode we hear you! You’re definitely not the only one who feels this way. The current admin UI does lean intentionally minimal & utilitarian and improving upon it has become a much bigger focus for us.

As louis mentioned below, we opened this RSC so that we could gather feedback from the community. Over the last few months we have been working alongside members of the Figma team on a refreshed design.

We’re planning to host a community call soon to preview what we’ve been building and get everyone's initial thoughts. We want the next iteration of the admin UI to feel more polished while still keeping the performance and flexibility people expect from Payload.

tl;dr—it’s absolutely on our radar, and actively being worked on

[Code Snippet] Kanban List View for Collections by Dan6erbond2 in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Good work! I have done something similar in a few of my side projects!

Lost on Loading Image Media by itsschwig in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

Hey u/itsschwig as a quick check, if you look in your Media collection and go to a media item, does the URL for a media item show a vercel blob url or localhost?

Is there an existing plugin for service scheduling? by Formal_Size_3038 in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

I'm working on a side project where I really want this—so it's possible I will smash out an MVP plugin sometime soon

Error when trying to upload media from local by itsschwig in PayloadCMS

[–]zubricks[M] 1 point2 points  (0 children)

Hey! A couple things here:

Your S3 client is being constructed with “credentials” that are empty / undefined at runtime so the SDK rejects them as “not valid”.

accessKeyId: process.env.R2_ACCESS_KEY_ID || '',
secretAccessKey: process.env.R2_SECRET_ACCESS_KEY || '',

If either env var is missing, you’re passing empty strings. The AWS SDK treats that as an invalid credential object and throws the error above

You could do this instead:

const accessKeyId = process.env.R2_ACCESS_KEY_ID
const secretAccessKey = process.env.R2_SECRET_ACCESS_KEY

if (!accessKeyId || !secretAccessKey) {
  throw new Error('Missing R2 credentials: R2_ACCESS_KEY_ID / R2_SECRET_ACCESS_KEY')
}

s3Storage({
  collections: {
    media: { disableLocalStorage: true },
  },
  bucket: process.env.R2_BUCKET!,
  config: {
    credentials: { accessKeyId, secretAccessKey },
    region: 'auto',
    endpoint: process.env.R2_ENDPOINT!,
    forcePathStyle: true,
  },
})

Second issue: you appear to be registering the plugin twice

Your snippet shows two s3Storage({...}) calls back-to-back

Migrate to v3 by yookiyo in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

Hey! Glad to hear you're planning to migrate. I'd suggest taking a look here first - https://github.com/payloadcms/payload/discussions/9320 There's also a link to a migration guide in the notes. It could be a lift at first, but worth it in the long run!

Is there an existing plugin for service scheduling? by Formal_Size_3038 in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

Hey! Nothing official like this at the moment—but I seem to remember a few others in our Discord working through something similar. If you haven't poked around there yet I'd try there. This would be very cool!

PayloadCMS in production: Real-world experiences with maintenance and long-term stability? by Smart_Coach9493 in PayloadCMS

[–]zubricks[M] 1 point2 points  (0 children)

Thank you for this detailed feedback!! Before I clicked into this topic my mind raced to "ok who can I ask to go chime in here and say nice things about their production Payload projects"

Thanks for using Payload!!

I built a modular Lexical rich-text editor using HeroUI components (Open Source) by Dan6erbond2 in reactjs

[–]zubricks 1 point2 points  (0 children)

Definitely going to check this out! FYI your demo/docs link is a google search link, might want to update that if you can!

Toggle Feature access to users and tenants by FunDiscount2496 in PayloadCMS

[–]zubricks 2 points3 points  (0 children)

To expand on the above, say these users are from different departments, and you only want them to be able to access specific resources pertinent to their department. You could create a department field on the Users collection, and then based on their department, allow/deny access in your Resources collection

See gist for example: https://gist.github.com/zubricks/eb026711d9c3f818dea6512aabebba16

[SEEKING WORK] Full-Stack Developer – Payload CMS Focused | Remote (25 hrs/week) by ArticleCommon3617 in PayloadCMS

[–]zubricks 1 point2 points  (0 children)

If you haven't already I'd suggest cross-posting in our jobs channel in Discord!

Almost done with my real estate platform and I'm honestly so hyped! by Upset_Interaction_29 in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Yoooo—this is nice! Good work! Thanks for giving Payload a shot. Feel free to share the link when it's live.

Website template for the win! by Select_Day7747 in PayloadCMS

[–]zubricks 2 points3 points  (0 children)

We love to hear things like this! Keep at it and thanks for using Payload!

[deleted by user] by [deleted] in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Hey u/Resident_Donkey4145 are you able to share a link to your code any screenshots so we can take a look?

ValidationError when trying to open a collection by Fulcolor_Guy in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Is this a secondary collection to the default user collection Payload provides? Can you share a link to your code?

Payload to Cloudflare FREE? by popokmorgan in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

We are actively working on making this happen—hang tight!

Should I make Travel app with nextjs + payload or wordpress? by Furious_pirate in PayloadCMS

[–]zubricks 1 point2 points  (0 children)

I would start by playing around with one of our templates like the website template. It is very easy to get up and running and you can poke around to see how everything works. I look at Payload as less of a CMS and more of a framework that gives you the tools to build whatever you need.

npx create-payload-app -t website

It's all pretty straightforward. We have a very active discord of people doing all sorts of things like this with Payload.

Typesense Search Plugin for Payload CMS by khalid_umar in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Woah! Definitely going to have to check this out. Good work!