forked from Codehackerone/parkify
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
810e6de
commit 4a5f21f
Showing
34 changed files
with
8,592 additions
and
8,560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
const cloudinary = require("cloudinary").v2; | ||
const { CloudinaryStorage } = require("multer-storage-cloudinary"); | ||
const cloudinary = require('cloudinary').v2; | ||
const { CloudinaryStorage } = require('multer-storage-cloudinary'); | ||
|
||
// cloudinary configuration | ||
cloudinary.config({ | ||
cloud_name: process.env.CLOUDINARY_CLOUD_NAME, | ||
api_key: process.env.CLOUDINARY_KEY, | ||
api_secret: process.env.CLOUDINARY_SECRET, | ||
cloud_name: process.env.CLOUDINARY_CLOUD_NAME, | ||
api_key: process.env.CLOUDINARY_KEY, | ||
api_secret: process.env.CLOUDINARY_SECRET, | ||
}); | ||
|
||
const storage = new CloudinaryStorage({ | ||
cloudinary, // Cloudinary instance | ||
params: { | ||
folder: "Parkify", // The name of the folder in cloudinary | ||
allowedFormats: ["jpeg", "png", "jpg"], // The formats you want to allow | ||
}, | ||
cloudinary, // Cloudinary instance | ||
params: { | ||
folder: 'Parkify', // The name of the folder in cloudinary | ||
allowedFormats: ['jpeg', 'png', 'jpg'], // The formats you want to allow | ||
}, | ||
}); | ||
|
||
module.exports = { | ||
cloudinary, | ||
storage, | ||
cloudinary, | ||
storage, | ||
}; |
Oops, something went wrong.