Cloudinary云中的NodeJs图像上传
使用Express multer Sharp Streamizer和Dotenv
安装
克隆存储库
git clone https://github.com/harun-rucse/Node-Image-Upload-Cloudinary.git
安装依赖项
npm install
在根目录中添加config.env文件
CLOUDINARY_NAME=your-cloudinary-name
CLOUDINARY_API_KEY=your-cloudinary-api-key
CLOUDINARY_API_SECRET_KEY=your-cloudinary-api-secret-key
运行服务器
npm run start
使用Postman测试API
POST localhost:5000/upload-single-im
评论0
最新资源