Like what we’re doing? Star us on GitHub!

Media Upload Feature

8 months ago
1 1

For publishing blog posts, we should need to add the MEDIA (image, video, sound, etc) feature in a text editor

  • denolfe
    Payload Team
    8 months ago

    Hey @momin-riyadh , if I'm understanding you correctly - this is already possible. In your blog post collection, you can make the relationship field to your media required by adding required: true like this:

      name: 'image',
      type: 'upload',
      required: true, // Add this
      relationTo: 'media',
    1 reply
  • momin-riyadh
    8 months ago

    Thanks, denolfe! I'm a beginner and exploring

Open the post
Continue the discussion in GitHub
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More