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
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.
Why would you need to convert it to base64? That seems a bit unnecessary.