I am creating an express app Studentforum like any social media with my friend. Initially we are using Cloudinary for storing images and we want to be put profile pictures(storage) and post's images(storage2) in different folders. While using 'storage' everything works fine but for 'storage2', an image buffer is created instead of URL and in cloudinary no folder named 'StudentForumPosts' is being created by the code. The following code I am using for cloudinary 'index.js':
I am creating an express app Studentforum like any social media with my friend. Initially we are using Cloudinary for storing images and we want to be put profile pictures(storage) and post's images(storage2) in different folders. While using 'storage' everything works fine but for 'storage2', an image buffer is created instead of URL and in cloudinary no folder named 'StudentForumPosts' is being created by the code. The following code I am using for cloudinary 'index.js':