we-plugin-file-cloudinary

Cloudinary file storage plugin for We.js

Usage no npm install needed!

<script type="module">
  import wePluginFileCloudinary from 'https://cdn.skypack.dev/we-plugin-file-cloudinary';
</script>

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

Testing

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

NPM Info:

NPM

Copyright and license

Under the MIT license.