In this article, you'll learn how to upload and resize single and multiple images with Node.js, TypeScript, Multer, and Sharp. The Node.js API will run on an Express.js HTTP server and use PostgreSQL database.
- Upload Single Image With Multer
- Using Multer to Upload a Single Image
- Route Handler Functions
- Upload Single Image with Multer and Sharp
- Using Multer to Upload a Single Image
- Using Sharp to Resize a Single Image
- Create the API Route Handlers
- Upload Multiple Images with Multer and Sharp
- Using Multer to Upload Multiple Images
- Using Sharp to Resize Multiple Images
- Processing a single file
- Processing multiple files
- Create the Route Functions
- Frontend for Uploading Either Single or Multiple Images
Read the entire article here: https://codevoweb.com/node-postgresql-upload-resize-multiple-images
Articles in this series:
API with Node.js + PostgreSQL + TypeORM: Project Setup
API with Node.js + PostgreSQL + TypeORM: JWT Authentication
API with Node.js + PostgreSQL + TypeORM: Send Emails
