Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

164
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda