Rich text upload value is null

default discord avatar
arctomachine
2 months ago
5

I am trying to add uploads to rich text field. But its value is null when inspecting node with upload type.


Thumbnail is visible in editor (screenshot 1), link below thumbnail opens popup of this upload. But then it returns result as following


{
  children: [ { text: '' } ],
  type: 'upload',
  value: null,
  relationTo: 'media'
}

Upload collection has default settings.


Depth level in request params makes no difference (screenshot 2).



Why is it null and how to get url for this upload?

  • discord user avatar
    seanzubrickas
    Payload Team
    2 months ago

    Hey @arctomachine we'll get you an answer to this shortly! Stay tuned.

  • default discord avatar
    arctomachine
    2 months ago

    Looks like it was lack of read access on uploads collection

  • discord user avatar
    seanzubrickas
    Payload Team
    2 months ago

    Ahh - so you got it sorted?

  • default discord avatar
    arctomachine
    2 months ago

    Yes, probably. It works in my current workflow now

  • discord user avatar
    seanzubrickas
    Payload Team
    2 months ago

    great! Let us know if you run into anything else. We're trying to get through all our unanswered threads so that we make sure we don't miss anyone if they need help. Cheers!

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.