only id returned for image

default discord avatar
last week

what is the reason im getting only the id returned for an image? its uploaded to a media collection, all other values, included nested ones are returned just fine. but im only getting the id for the image as a string, no object with url or sizes or anything.

just to clarify i have:

access: {

read: () => true,


on my media collection

and since the other fields within the object are being nested it shouldnt be a depth problem either

to make it even stranger there is another media file right next to it in the object that gets populated with all the data just as it should

solved, payload needed to be rebuilt due to a name change.

  • discord user avatar
    Payload Team
    last week

    Hey @olarssony glad you were able to sort this one out! Let us know if you need anything else.

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


Connect with the Payload Community on Discord



Can't find what you're looking for?

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