O'Reilly logo
  • David Kit thinks this is interesting:

multer({
dest: path.join(__dirname, 'public/upload/temp')
})

From

Cover of Web Development with MongoDB and Node - Third Edition

Note

The parameter here is expecting a middleware function, at this point, ...
multer(...).any() should be generic enough.