Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

165
Vistas
why strapi using cloudinary as a cloud storage does not return images link onteh api calls

I make strapi+cloudinary integration works, but when i try to call the strapi api (/api/posts) the image attributes doesn't come inside the json file, for some reason media starpi attributes is hidden from requests(or there is some error there).

//api/posts

{"data":
[{
"id":1,
"attributes":
{
"title":"li fogo na bran bran ya",
"slug":"li-fogo-na-bran-bran-ya",
"conteudo":"\n\nWhat is Lorem Ipsum?\nLorem Ipsum is simply dummy text of the ...(injected humour and the like).\n\n",
"lingua":"en",
"imageName":"coyas",
"createdAt":"2022-03-19T11:16:27.549Z",
"updatedAt":"2022-03-19T11:16:35.170Z",
"publishedAt":"2022-03-19T11:16:35.166Z"}}],
"meta":{"pagination":
{
"page":1,
"pageSize":25,
"pageCount":1,
"total":1
}}}

// so where is the imagem field

enter image description here

the integratin with strapi is working fine

module.exports = ({ env }) => ({
  upload: {
    config: {
      provider: "cloudinary",
      providerOptions: {
        cloud_name: env("CLOUDINARY_NAME"),
        api_key: env("CLOUDINARY_KEY"),
        api_secret: env("CLOUDINARY_SECRET"),
      },
      actionOptions: {
        upload: {},
        delete: {},
      },
    },
  },

I'm using the @strapi/provider-upload-cloudinary for storage upload

what i need to do to get those hiddens attributes?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Have you tried altering your api endpoint to "/api/posts?populate=*" ? I believe you have to explicitly tell Strapi to populate relations, etc in order to get them returned via the api call.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda