cloudinary-community / cloudinary-examples

Easy Cloudinary integration examples for boosting web performance.
MIT License
87 stars 77 forks source link

add example for signed cldwidgetupload #132

Closed RichardBray closed 9 months ago

vercel[bot] commented 9 months ago

@RichardBray is attempting to deploy a commit to the Cloudinary DevX Team on Vercel.

A member of the Team first needs to authorize it.

colbyfayock commented 9 months ago

hey @RichardBray this looks good. can you do 2 things if possible

Can you add a README like this one: https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/nextjs-cldimage

could you use the onSuccess callback, store the result in state, and show the image on the page?

you can import the CldImage component from the same package and drop it in below the widget:

<CldImage src={result.public_id} width={result.width} height={result.height} alt="Uploaded Image"
RichardBray commented 9 months ago

Hey @colbyfayock sorry I made the changes a while back but didn't ping you.

If you get some time it would be good to know your thoughts, but there's no rush.

colbyfayock commented 9 months ago

looks good @RichardBray thank you!