How Do I Upload Images to Cloudinary and Use the URL in a Database?

0
11
Asked By CoolCat42 On

I'm having a tough time uploading images to Cloudinary and integrating the image URL into my database. I really don't know where to start and the documentation isn't very helpful. I usually get the images from an input type file, so any advice on how to get this going would be appreciated. Thanks!

3 Answers

Answered By TechWizard007 On

The method you choose to upload depends on your setup. If the file is in a specific folder, you can use the Cloudinary SDK to refer directly to the file URL. However, if you're uploading from the frontend, you might need to convert the image to base64 before uploading it to Cloudinary along with related metadata.

CuriousUser18 -

Wait, why would I need to convert it to base64? That's confusing!

Answered By WebDevGuru On

Are you using Cloudinary with Express? I can give you some pointers on how that works if you're interested!

CoolCat42 -

I actually just found out how to implement it!

Answered By ImageMaster99 On

Hey! I run a platform called Re-Image, which is a simpler alternative to Cloudinary. If you're interested, I can help you set it up. It's easier to manage and offers a free tier too!

CoolCat42 -

Thank you for the offer! I just figured out how to implement it. Again, thank you!

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.