Skip to content

▪️ fileUploader

Specifies the options to passthrough to multer. express-openapi-validator uses multer to handle file uploads. see multer opts

Option-schema

fileUploader: true | false | {
  dest: `/path/to/uploads`
}

fileUploader (optional)

  • true (default) - enables multer and provides simple file(s) upload capabilities
  • false - disables file upload capability. Upload capabilities may be provided by the user
  • {...} - multer options to be passed-through to multer. see multer opts for possible options

e.g.

fileUploader: {
  dest: 'uploads/',
}