connect-busboy on('file') event not firing
问题 I'm having issues with uploading files. I have the following code: App.js var bodyParser = require('body-parser'); var busboy = require('connect-busboy'); app.use(bodyParser.urlencoded({extended: false})); app.use(bodyParser.json()); app.use(busboy({immediate: true, limits: {fileSize: 25 * 1024 * 1024}})); Attachments.js router.post('/:table/:id', function (req, res) { req.busboy.on('file', function (fieldname, file, filename, encoding, mimetype) { //Do stuff.. }); }); The 'file' event is not