1cloudinary.config({
2cloud_name: process.env.CLOUD_NAME,
3api_key: process.env.API_KEY,
4api_secret: process.env.API_SECRET
5});
6const storage = cloudinaryStorage({
7cloudinary: cloudinary,
8folder: "demo",
9allowedFormats: ["jpg", "png"],
10transformation: [{ width: 500, height: 500, crop: "limit" }]
11});
12const parser = multer({ storage: storage });