How to properly handle files upload using Node.js Express backend?
问题 I decided to use ng-flow, an Angular implementation of flow.js at front end to handle files uploading, I then picked multer as middleware to receive the files. I did the most simple middleware setup for multer: app.use(multer({ dest: './temp_uploads/'})) Got a /POST upload route and I'm now logging to console what's being received: app.route('/upload').post(function(request,response,next){ console.log(request.body) console.log(request.files) // Response code and stuff then ... }); So the