How do I upload images to Cloudinary and use the URL in my database?

0
4
Asked By CuriousFalcon92 On

I'm struggling to upload images to Cloudinary and then integrate the image URL into my database. I could use some guidance on the initial steps because I'm pretty lost. I've got the images coming from an input type file, but I'm not sure how to proceed. The documentation isn't really helping me much either. Any advice would be greatly appreciated!

1 Answer

Answered By TechWizard88 On

It really depends on how you're planning to upload the files. If you have them stored in a specific folder, you can directly use the file URL with the Cloudinary SDK. However, if you're uploading from the front end, you might need to convert the file to base64 format and then upload it along with the necessary metadata. That way, it’ll work smoothly with Cloudinary!

Base64Fan01 -

Wait, do you really have to convert it to base64 for this to work? Seems like an extra step, right?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.