we-plugin-file-cloudinary

1.1.1 • Public • Published

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.

Package Sidebar

Install

npm i we-plugin-file-cloudinary

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • albertosouza