cloudinary-community / next-cloudinary

⚡️ High-performance image delivery and uploading at scale in Next.js powered by Cloudinary.
https://next.cloudinary.dev
MIT License
251 stars 70 forks source link

How to get public URL of upload with CldUploadButton? #463

Closed mail2chuka closed 6 months ago

mail2chuka commented 6 months ago

when i use the clduploadbutton, how do i get back the public url of the submitted file?

colbyfayock commented 6 months ago

hey @mail2chuka you can get it using the onSuccess callback like this:

<CldUploadButton onSuccess={(result) => console.log(result.info.secure_url)} />