Skip to content

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.

License

Notifications You must be signed in to change notification settings

HaiderABB/Cloudinary-Upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published