Class: CloudinaryHelper

bin/helpers/api/cloudinary-helper~CloudinaryHelper(configopt)

new CloudinaryHelper(configopt)

Create an CloudinaryHelper.
Parameters:
Name Type Attributes Description
config Object <optional>
The configuration settings for the cloudinary API.
Properties
Name Type Attributes Description
cloud_name string <optional>
The Cloudinary cloud name.
api_key string <optional>
The Cloudinary API key.
api_secret string <optional>
The Cloudinary API secret.
Source:

Members

(static) defaultConfig

Returns the Default cloudinary config for image storing.
Source:

(static) storage

Returns the disk storage used for cloudinary uploads.
Source:

(static) upload

Returns the multer object used for Cloudinary uploads.
Source:

Methods

(static) imageFilter(req, file, cb)

Restrict file extensions of images to be uploaded to Cloudinary.
Parameters:
Name Type Description
req Request The HTTP request object.
file Object The image file to be uploaded.
cb requestCallback The callback that handles the response.
Source:

(async) uploadImageToCloudinary()

Upload image to Cloudinary API.
Source: