Skip to content

Commit

Permalink
cloudinary configs to upload images
Browse files Browse the repository at this point in the history
  • Loading branch information
fichimura committed Mar 20, 2024
1 parent 028ea0d commit a519c89
Show file tree
Hide file tree
Showing 4,670 changed files with 126,884 additions and 2 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
20 changes: 20 additions & 0 deletions cloudinary/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const cloudinary = require('cloudinary').v2;
const { CloudinaryStorage } = require('multer-storage-cloudinary');

cloudinary.config({
cloud_name: process.env.CLOUDINARY_CLOUD_NAME,
api_key: process.env.CLOUDINARY_KEY,
api_secret: process.env.CLOUDINARY_SECRET
});


const storage = new CloudinaryStorage({
cloudinary,
folder: 'Meerkat',
allowedFormats: ['jpeg', 'png', 'jpg']
});

module.exports = {
cloudinary,
storage
}
54 changes: 54 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 147 additions & 0 deletions node_modules/cloudinary-core/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a519c89

Please sign in to comment.