File cloudinary
A Medusa plugin to use Cloudinary as a file storage provider. Seamlessly upload, retrieve, and manage media files in your Medusa store using Cloudinary.
Compatibility
This starter is compatible with versions >= 2.4.0 of .
Medusa File Cloudinary Plugin
Easily integrate Cloudinary as a file storage provider in your Medusa store.
This plugin enables seamless upload, retrieval, and management of images and other media files using Cloudinary's robust cloud infrastructure, directly from your Medusa backend.
Installation
Install the plugin in your Medusa project:
yarn add @jaykanjia/medusa-file-cloudinary# ornpm install @jaykanjia/medusa-file-cloudinary
Configuration
Step 1: Update Medusa Configuration
Modify your (usually found in your Medusa project's root or under ) to register the plugin as a file provider:
{resolve: "@medusajs/medusa/file",options: {providers: [{resolve: "@jaykanjia/medusa-file-cloudinary/providers/file-cloudinary",id: "cloudinary",options: {apiKey: process.env.CLOUDINARY_API_KEY,apiSecret: process.env.CLOUDINARY_API_SECRET,cloudName: process.env.CLOUDINARY_CLOUD_NAME,folderName: "medusa", // optional, defaults to rootsecure: true, // optional, defaults to true},},],},},
Step 2: Set Environment Variables
Add the following environment variables to your file:
CLOUDINARY_API_KEY=your_cloudinary_api_keyCLOUDINARY_API_SECRET=your_cloudinary_api_secretCLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
You can find these credentials in your Cloudinary dashboard.
Getting Started
Visit the Quickstart Guide to set up a server.
Visit the Plugins documentation to learn more about plugins and how to create them.
Visit the Docs to learn more about our system requirements.
What is Medusa
Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.
Learn more about Medusa's architecture and commerce modules in the Docs.
Community & Contributions
The community and core team are available in GitHub Discussions, where you can ask for support, discuss roadmap, and share ideas.
Join our Discord server to meet other community members.