Filesrocket service to manage your files with Cloudinary
npm i filesrocket-cloudinary
To use the service add the following content
import { Filesrocket } from "filesrocket";
import { CloudinaryFileService } from "filesrocket-cloudinary";
// Initialize filesrocket
const filesrocket = new Filesrocket();
// Setting service
const cloudinary = new CloudinaryFileService({
pagination: { default: 15, max: 50 },
cloud_name: "<Your CLOUD NAME>",
api_key: "<Your API KEY>",
api_secret: "<Your API SECRET>"
});
// Register services
filesrocket.register("cloudinary", cloudinary);
// Recovering service
const service = filesrocket.service("cloudinary");
// Recovering controller
const controller = filesrocket.controller("cloudinary");
Note: To use this service, you need to have an account, enter here and follow the steps.