Cloudinary Storage Provider
This provider adds Cloudinary SDK configuration, Zod-validated environment variables, and a Multer middleware that accepts in-memory uploads (images, video, PDF) with type and size limits.
Installation Guide
npx servercn-cli add pr cloudinary-storageBasic Implementation
1. Env Configuration
2. Cloudinary client
The template also includes a commented uploadToCloudinary / deleteFileFromCloudinary example in the same file—copy it into a service or util when you wire routes.
3. Upload middleware (Multer)
Usage
Attach the middleware to a route, then pass req.file?.buffer to an upload helper that streams to Cloudinary (see the commented block in cloudinary.ts in the template).