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
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!
Wait, do you really have to convert it to base64 for this to work? Seems like an extra step, right?