Uploading images and saving urls in database

Options
Jela
Jela Member Posts: 1

Hi, I need to make a feature for users to be able to upload an image and then get the url from this image and save it to database so I can map over it and display it in my app.

So far I understand that uploading the files from frontend can be done with cloudinary widget but how to get url back?

I am using next.js and postgresql.

Tagged:

Answers

  • tia
    tia Member, Cloudinary Staff Posts: 24
    Options

    Hi there,

    Thanks so much for reaching out.

    If you need to process information from the upload, you can use a notification URL in your upload preset. That way you will get the full JSON response back and you can parse out the data you need. You can find the relevant documentation here:

    I hope this helps. If you have any questions, do not hesitate to ask.

    Kind Regards,

    Tia