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.
- Upload images to Cloudinary
- Validate image file types (JPEG, PNG, GIF)
- Custom image naming
- Node.js: Runtime for the server
- Express: Web framework
- Multer: Middleware for handling file uploads
- Cloudinary: Image storage and management
- dotenv: Environment variable management
- Clone the repository:
git clone https://github.com/your-username/image-upload-cloudinary.git cd image-upload-cloudinary
- Install dependencies:
npm install
- Configure Environment Variables:
CLOUD_NAME=your_cloud_name API_KEY=your_api_key API_SECRET=your_api_secret
- Start the server:
npm start
- Start the server:
curl -X POST http://localhost:3000/Image/Upload