Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!