When I query an upload collection, in this case 'covers', I expect to get the URL back.
This works normally, unless I'm selecting the url field with a REST API Select.
https://payloadcms.com/docs/queries/select#rest-api
Basically, I query the document like this:
http://localhost:3000/cms/api/covers/6996e372fd561794164b28e8
I get the response
{
"createdAt": "2026-02-19T10:18:26.920Z",
"updatedAt": "2026-02-24T10:27:36.118Z",
"url": "/cms/api/covers/file/20260113-001-KIT-MAIN-COV01jpg",
"filename": "20260113-001-KIT-MAIN-COV01jpg",
"id": "6996e372fd561794164b28e8"
// ..etc
}
But when I query like this, selecting url:
http://localhost:3000/cms/api/covers/6996e372fd561794164b28e8?select[url]=true
I get the response:
{
"url": null,
"id": "6996e372fd561794164b28e8"
}
Why is this happening?