I set up file uploads with express-busboy using the example from the repository here
which doesn't seem to use the normal use()
syntax so I'm a little confused as to how to actually limit this middleware so it only executes on a specific route because it's breaking other POST requests.
This is how I configured it:
var busboy = require('express-busboy');
busboy.extend(app, {
upload: true,
path: './uploads/temp'
});
Well since express-busboy wasn't working for me, I tried using express-fileupload instead and that seems to work now.