See Sanity in action 👀 Join us for a live product demo + Q&A →

Enabling tagging of media using custom input component and string field options

7 replies
Last updated: Feb 25, 2023
Regarding the media browser plugin
Does anyone know of a way to enable tagging of media, eg. image from the schema, instead of having to go to the media browser plugin subsequently to tag what I just uploaded?
Please prove ChatGPT wrong!
Feb 23, 2023, 1:24 PM
chatGPT’s database cuts off in 2021 so there is a possibility 😄
Feb 23, 2023, 1:36 PM
Probably with document actions? Say you modify your Publish action and add those tags in your media field?
Feb 23, 2023, 2:16 PM
Well, where do you need those tags (in the image itself, or the image field)?
Feb 23, 2023, 5:29 PM
Ah you mean add a tag on upload? I would do so with a custom input component and a string field with options and then patch it to the image asset doc.
Feb 23, 2023, 5:30 PM
There is ABSOLUTELY a way to do so 🙂 just depends what you need exactly :cool_doge:
Feb 23, 2023, 5:31 PM
😄 ah, thank you both
user G
and
user J
I have not modified document actions yet, but that sounds definitely like the best approach
Feb 25, 2023, 6:10 AM
awesome. we wish you success
user Q
😊
Feb 25, 2023, 12:14 PM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.