/Cloudinary-Upload

A Node.js application using Express, Multer, and Cloudinary to upload, validate, and store images. Supports custom filenames and ensures only valid image types are uploaded. Includes setup instructions and endpoint details.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Image Upload Project

A Node.js application that demonstrates how to upload images to Cloudinary using Express and Multer. This project handles image uploads, validates file types, and supports custom filenames.

Features

  • Upload images to Cloudinary
  • Validate image file types (JPEG, PNG, GIF)
  • Custom image naming

Technologies

  • Node.js: Runtime for the server
  • Express: Web framework
  • Multer: Middleware for handling file uploads
  • Cloudinary: Image storage and management
  • dotenv: Environment variable management

Setup

  1. Clone the repository:
    git clone https://github.com/your-username/image-upload-cloudinary.git
    cd image-upload-cloudinary
    
  2. Install dependencies:
    npm install
    
  3. Configure Environment Variables:
    CLOUD_NAME=your_cloud_name
    API_KEY=your_api_key
    API_SECRET=your_api_secret
    
  4. Start the server:
  npm start
  1. Start the server:
curl -X POST http://localhost:3000/Image/Upload