- Community aggregator
- Country: United States
File uploads in Express and NestJS with safe defaults, and one interface for disk, S3 and Azure
Every Node.js backend eventually needs a file upload endpoint. And every time, the same questions come back: How do I stop someone from uploading a 5 GB file, or 10,000 tiny ones? How do I make sure ../../etc/passwd never ends up as a filename on my disk? Why does moving from local disk to S3 (or…