I want to preview image/video like notion.

default discord avatar
anisulislampranto
3 months ago
2

So the default way after uploading image video is good but I want more. I want it to be bigger and in the case of video, I should be able to play it. Example: In notion when we upload something the way it previews I want it that way.

  • default discord avatar
    notchr
    3 months ago

    Hello @anisulislampranto - You could write a basic

    https://payloadcms.com/docs/admin/components#fields

    component to display the field as a video widget of your choice where you pass the value to the widget

  • default discord avatar
    anisulislampranto
    3 months ago

    got the solution. thanks

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.