we-plugin-file-cloudinary
v1.1.1
Published
Cloudinary file storage plugin for We.js
Downloads
5
Maintainers
Readme
We.js Cloudinary plugin :cloud:
Cloudinary file storage plugin for We.js, upload files to Cloudinary and save metadata in file or image model
Suport for resize images based in image styles configuration
This plugin adds the cloudinary storage strategy in We.js projects
Installation
we i we-plugin-file-cloudinary
Configuration
Create one account in http://cloudinary.com
And add account configuration and change default storage in config/local.js file:
// ----
apiKeys: {
cloudinary: {
'cloud_name': 'clowdname',
'api_key': 'apikey',
'api_secret': 'apisecret'
}
},
// change default image and file storage to cloudinary:
upload: {
defaultImageStorage: 'cloudinary',
defaultFileStorage: 'cloudinary'
}
// ----
Links
- We.js site: http://wejs.org
- Cloundnary: http://cloudinary.com
Testing
- Configure one cloudinary keys in config/local.js file
- run npm test
NPM Info:
Copyright and license
Under the MIT license.