Skip to content

Media Upload Feature #826

Answered by denolfe
momin-riyadh asked this question in Q&A
Jul 26, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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',
},

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@momin-riyadh
Comment options

Answer selected by denolfe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants