Media Upload Feature #826
Answered
by
denolfe
momin-riyadh
asked this question in
Q&A
-
For publishing blog posts, we should need to add the MEDIA (image, video, sound, etc) feature in a text editor |
Beta Was this translation helpful? Give feedback.
Answered by
denolfe
Jul 26, 2022
Replies: 1 comment 1 reply
-
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 {
name: 'image',
type: 'upload',
required: true, // Add this
relationTo: 'media',
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
denolfe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: