I have a working REST API built with node.js and Express.
Now I need an endpoint for sending files that accepts downloaded files and processes them.
I use Express Router and some middleware for authentication.
server.js (excerpt)
var router = express.Router() app.use("/api", router) [...] router.use(function(req, res, next) {
How can I use multer to download the downloaded file as a req.file file (or so), but only in / api / upload and for offline users?
lukas293
source share