Need Help Uploading Images to Cloudinary and Storing URLs

0
6
Asked By SkyHighExplorer92 On

I'm having a tough time figuring out how to upload images to Cloudinary and then add the image URLs into my database. I'm starting from scratch and honestly, the documentation isn't super helpful. I'm specifically getting the images from an input type file. Any tips or advice on how to get started would be really appreciated! Thanks!

1 Answer

Answered By TechGuru88 On

The process varies depending on where you're uploading the image from. If your file is stored locally in a specific folder, you can just use its URL with the Cloudinary SDK for upload. For front-end uploads, you'll first need to convert the image to base64 format before uploading it along with the metadata.

ImageSeeker11 -

Why would you need to convert it to base64? That seems a bit unnecessary.

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.