A hardened file upload REST API
A production-grade file upload API built with Express and Multer. Strict MIME whitelist, size and count limits, streaming storage, and full endpoint docs.
What's included
- Strict MIME whitelist — only allowed types
- Size limits — configurable max bytes
- Count limits — max files per request
- Streaming storage — disk + memory modes
- File metadata — name, size, type, url
- Error handling — clean REST errors
- 12 passing tests — node:test suite
- Postman-ready docs — README endpoints
Quick Start
npm install
npm start
Stack
Node.js · Express · Multer
Use cases
- Avatar/asset uploads
- Document submissions
- SaaS file features
- Learning hardened uploads