☁️ Cloudinary file storage plugin for we.js ☁️
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.jscsrc
.jshintignore
.jshintrc
.npmignore
.travis.yml
README.md
package.json
plugin.js

README.md

We.js Cloudinary plugin ☁️

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

Testing

  • Configure one cloudinary keys in config/local.js file
  • run npm test

NPM Info:

NPM

Copyright and license

Under the MIT license.