How to get media in deep component

System Information
  • Strapi Version: 4.24.0
  • Operating System: Mac Os
  • Database: postgre
  • Node Version: 20.12.2
  • NPM Version: 10.5.0
  • Yarn Version: 1.22.19

I try the following query: http://localhost:1337/api/pages?filters[slug]=about-page&populate[blocks][populate]=*
Result:
{
“data”: [
{
“id”: 3,
“attributes”: {
“title”: “About”,
“slug”: “about-page”,
“createdAt”: “2024-05-30T01:55:54.243Z”,
“updatedAt”: “2024-06-10T08:49:58.456Z”,
“publishedAt”: “2024-05-30T01:58:40.289Z”,
“blocks”: [
{
“id”: 2,
“__component”: “shared.breadcumb”,
“title”: “Về An Bình”,
“listLink”: [
{
“id”: 31,
“href”: “/”,
“label”: “Trang chủ”,
“target”: null,
“isExternal”: false
},
{
“id”: 32,
“href”: “/about”,
“label”: “Về An Bình”,
“target”: null,
“isExternal”: false
}
]
},
{
“id”: 2,
“__component”: “blocks.company-info”,
“description”: “

<span style="background-color:rgb(255,255,255);color:hsl(0, 0%, 0%);font-family:"Open Sans", sans-serif;">Cung cấp giải pháp số hóa và bóc tách thông tin tự động hàng đầu thế giới!  Ứng dụng công nghệ ICR/OCR/OBR/OMR của ABBYY, đội ngũ chúng tôi cung cấp giải pháp và dịch vụ nhập dữ liệu tối ưu cho khách hàng, với tốc độ vượt trội, chính xác, chi phí thấp và qui trình hiệu quả nhất.

 

 

”,
“header”: {
“id”: 14,
“theme”: “primary”,
“label”: “Về ANBINH”,
“title”: “Hơn 10 năm kinh nghiệm trong lĩnh vực chuyển đổi số”
},
“button”: {
“id”: 2,
“text”: “Tìm hiểu thêm”,
“type”: “primary”
}
},
{
“id”: 1,
“__component”: “blocks.core-value”,
“header”: {
“id”: 16,
“theme”: “primary”,
“label”: null,
“title”: “Tầm nhìn - Sứ mệnh & Giá trị cốt lõi”
},
“items”: [
{
“id”: 1,
“title”: “Tầm nhìn”,
“content”: “

<span style="color:hsl(0, 0%, 0%);">Lorem ipsum dolor sit amet, consectetur adipiscing elit, do eiusmod tempor pack incididunt ut labore et dolore magna aliqua quised ipsum suspendisse.
<span style="color:hsl(0, 0%, 0%);">Swag fanny pack lyft blog twee. JOMO ethical copper mug, succulents typewriter shaman DIY kitsch twee taiyaki fixie hella venmo after messenger poutine next level humblebrag swag franzen.

”,
“slug”: “tam-nhin”
},
{
“id”: 3,
“title”: “Sứ mệnh”,
“content”: “

<span style="color:hsl(0, 0%, 0%);">Lorem ipsum dolor sit amet, consectetur adipiscing elit, do eiusmod tempor pack incididunt ut labore et dolore magna aliqua quised ipsum suspendisse.
<span style="color:hsl(0, 0%, 0%);">When you need free CSS templates, you can simply type TemplateMo in any search engine website. In addition, you can type TemplateMo Portfolio, TemplateMo One Page Layouts, etc.

”,
“slug”: “su-menh”
},
{
“id”: 2,
“title”: “Giá trị cốt lõi”,
“content”: “

<span style="color:hsl(0, 0%, 0%);">Lorem ipsum dolor sit amet, consectetur adipiscing elit, do eiusmod tempor pack incididunt ut labore et dolore magna aliqua quised ipsum suspendisse.
<span style="color:hsl(0, 0%, 0%);">When you need free CSS templates, you can simply type TemplateMo in any search engine website. In addition, you can type TemplateMo Portfolio, TemplateMo One Page Layouts, etc.

”,
“slug”: “gia-tri-cot-loi”
}
]
}
]
}
}
],
“meta”: {
“pagination”: {
“page”: 1,
“pageSize”: 25,
“pageCount”: 1,
“total”: 1
}
}
}

In the “items” section of my “core-value” block there is a “coverImage” field of type media.
I don’t see it appearing here, how does it appear with all the data above.

I also tried: http://localhost:1337/api/pages?filters[slug]=about-page&populate[blocks][populate][items][populate]=coverImage&populate[blocks][populate]=*
But other blocks lose some fields (header, listLink,…)
{
“data”: [
{
“id”: 3,
“attributes”: {
“title”: “About”,
“slug”: “about-page”,
“createdAt”: “2024-05-30T01:55:54.243Z”,
“updatedAt”: “2024-06-10T08:49:58.456Z”,
“publishedAt”: “2024-05-30T01:58:40.289Z”,
“blocks”: [
{
“id”: 2,
“__component”: “shared.breadcumb”,
“title”: “Về An Bình”
},
{
“id”: 2,
“__component”: “blocks.company-info”,
“description”: “

<span style="background-color:rgb(255,255,255);color:hsl(0, 0%, 0%);font-family:"Open Sans", sans-serif;">Cung cấp giải pháp số hóa và bóc tách thông tin tự động hàng đầu thế giới!  Ứng dụng công nghệ ICR/OCR/OBR/OMR của ABBYY, đội ngũ chúng tôi cung cấp giải pháp và dịch vụ nhập dữ liệu tối ưu cho khách hàng, với tốc độ vượt trội, chính xác, chi phí thấp và qui trình hiệu quả nhất.

 

 


},
{
“id”: 1,
“__component”: “blocks.core-value”,
“items”: [
{
“id”: 1,
“title”: “Tầm nhìn”,
“content”: “

<span style="color:hsl(0, 0%, 0%);">Lorem ipsum dolor sit amet, consectetur adipiscing elit, do eiusmod tempor pack incididunt ut labore et dolore magna aliqua quised ipsum suspendisse.
<span style="color:hsl(0, 0%, 0%);">Swag fanny pack lyft blog twee. JOMO ethical copper mug, succulents typewriter shaman DIY kitsch twee taiyaki fixie hella venmo after messenger poutine next level humblebrag swag franzen.

”,
“slug”: “tam-nhin”,
“coverImage”: {
“data”: {
“id”: 30,
“attributes”: {
“name”: “service05.png”,
“alternativeText”: null,
“caption”: null,
“width”: 416,
“height”: 350,
“formats”: {
“thumbnail”: {
“ext”: “.png”,
“url”: “/uploads/thumbnail_service05_05bad4d91f.png”,
“hash”: “thumbnail_service05_05bad4d91f”,
“mime”: “image/png”,
“name”: “thumbnail_service05.png”,
“path”: null,
“size”: 59.32,
“width”: 185,
“height”: 156,
“sizeInBytes”: 59315
}
},
“hash”: “service05_05bad4d91f”,
“ext”: “.png”,
“mime”: “image/png”,
“size”: 74.75,
“url”: “/uploads/service05_05bad4d91f.png”,
“previewUrl”: null,
“provider”: “local”,
“provider_metadata”: null,
“createdAt”: “2024-06-10T08:36:21.703Z”,
“updatedAt”: “2024-06-10T08:36:21.703Z”
}
}
}
},
{
“id”: 3,
“title”: “Sứ mệnh”,
“content”: “

<span style="color:hsl(0, 0%, 0%);">Lorem ipsum dolor sit amet, consectetur adipiscing elit, do eiusmod tempor pack incididunt ut labore et dolore magna aliqua quised ipsum suspendisse.
<span style="color:hsl(0, 0%, 0%);">When you need free CSS templates, you can simply type TemplateMo in any search engine website. In addition, you can type TemplateMo Portfolio, TemplateMo One Page Layouts, etc.

”,
“slug”: “su-menh”,
“coverImage”: {
“data”: {
“id”: 32,
“attributes”: {
“name”: “service06.png”,
“alternativeText”: null,
“caption”: null,
“width”: 416,
“height”: 350,
“formats”: {
“thumbnail”: {
“ext”: “.png”,
“url”: “/uploads/thumbnail_service06_60cee71b13.png”,
“hash”: “thumbnail_service06_60cee71b13”,
“mime”: “image/png”,
“name”: “thumbnail_service06.png”,
“path”: null,
“size”: 77.5,
“width”: 185,
“height”: 156,
“sizeInBytes”: 77498
}
},
“hash”: “service06_60cee71b13”,
“ext”: “.png”,
“mime”: “image/png”,
“size”: 79.95,
“url”: “/uploads/service06_60cee71b13.png”,
“previewUrl”: null,
“provider”: “local”,
“provider_metadata”: null,
“createdAt”: “2024-06-10T08:36:21.856Z”,
“updatedAt”: “2024-06-10T08:36:21.856Z”
}
}
}
},
{
“id”: 2,
“title”: “Giá trị cốt lõi”,
“content”: “

<span style="color:hsl(0, 0%, 0%);">Lorem ipsum dolor sit amet, consectetur adipiscing elit, do eiusmod tempor pack incididunt ut labore et dolore magna aliqua quised ipsum suspendisse.
<span style="color:hsl(0, 0%, 0%);">When you need free CSS templates, you can simply type TemplateMo in any search engine website. In addition, you can type TemplateMo Portfolio, TemplateMo One Page Layouts, etc.

”,
“slug”: “gia-tri-cot-loi”,
“coverImage”: {
“data”: {
“id”: 31,
“attributes”: {
“name”: “service04.png”,
“alternativeText”: null,
“caption”: null,
“width”: 416,
“height”: 350,
“formats”: {
“thumbnail”: {
“ext”: “.png”,
“url”: “/uploads/thumbnail_service04_fa03f58c40.png”,
“hash”: “thumbnail_service04_fa03f58c40”,
“mime”: “image/png”,
“name”: “thumbnail_service04.png”,
“path”: null,
“size”: 66.8,
“width”: 185,
“height”: 156,
“sizeInBytes”: 66797
}
},
“hash”: “service04_fa03f58c40”,
“ext”: “.png”,
“mime”: “image/png”,
“size”: 72.86,
“url”: “/uploads/service04_fa03f58c40.png”,
“previewUrl”: null,
“provider”: “local”,
“provider_metadata”: null,
“createdAt”: “2024-06-10T08:36:21.779Z”,
“updatedAt”: “2024-06-10T08:36:21.779Z”
}
}
}
}
]
}
]
}
}
],
“meta”: {
“pagination”: {
“page”: 1,
“pageSize”: 25,
“pageCount”: 1,
“total”: 1
}
}
}


Dear @Kodeine_Jt,

did you solve this problem? I am at your point.
I do not get the REST API to publish the media information from a nested component.

Help! :smiley:

Best,

Nils