I need to upload images and pdfs through upload plugin in strapi v4. I already configured upload plugin with cloudinary as followed.
upload: {
config: {
provider: "cloudinary",
providerOptions: {
cloud_name: env("CLOUDINARY_NAME"),
api_key: env("CLOUDINARY_KEY"),
api_secret: env("CLOUDINARY_SECRET"),
},
actionOptions: {
uploadStream: {
folder: env("CLOUDINARY_FOLDER"),
},
delete: {},
},
},
},
But all the images are stored in given folder name(env(âCLOUDINARY_FOLDERâ)) in folder option. But I need to upload images in âImageâ folder in cloudinary root(env(âCLOUDINARY_FOLDERâ)) and as well pdfs in âPdfâ folder. How can I achieve this.