middleware

middleware

Source:
Reusable Express.js middleware

Classes

MiddlewareModule

Type Definitions

FileUploadOptions

Source:
Properties:
Name Type Description
maxFileSize number Maximum file size allowed by upload
uploadDir string Directory file upload should be stored
promisify Boolean If true, middleware will return a promise rather than use the standard callback. Useful when calling middleware outside of an Express middleware stack
removeZipSource Boolean To be used in conjunction with the unzip option. Whether the original zip file should be removed after unzipping (true by default)
unzip Boolean Whether any zip files should be unzipped by the handler
Options which can be passed to file upload middleware
Type:
  • Object