Image URL not showing in my database

Mykel
Mykel Member Posts: 2
edited July 2023 in Developer APIs

Hi, so when I upload an image to a product in my database, I get a status of 200 with the response below.

{

    "data": {

        "image": "http://res.cloudinary.com/xxxxxxxx/image/upload/v16xxxxxxxxx/mealyProduct-images/ps7tjixxxxxxxxxxxx",

        "public_id": "mealyProduct-images/ps7tji7xxxxxxxxxxx"

    },

    "status": "success",

    "message": "Product image uploaded with success!"

}


but on my database, I do not see the image URL... just the publicId


How do I resolve this issue?


Tagged:

Best Answers

  • Cloudinary Team
    Cloudinary Team Administrator, Cloudinary Staff Posts: 166 admin
    Answer ✓

    Hi there,

    Thanks for reaching out.

    How are you parsing that data from the upload response? From what you have shared, it looks like you need to grab response.data.image to get the image URL.

    Please give that a try and let me know how it goes. If it doesn't work, can you please share some more information, such as your cloud name and how you are uploading?

    If you have sensitive information or credentials, you can open a support ticket directly instead at https://support.cloudinary.com/hc/en-us/requests/new

    I look forward to your reply.

    Kind regards,

    Tia

  • Mykel
    Mykel Member Posts: 2
    Answer ✓

    Thank you so much, worked.