The destination directory for uploaded files. If storage is not set
and dest is, Multer will create a DiskStorage instance configured
to store files at dest with random filenames.
An object specifying various limits on incoming data. This object is
passed to Busboy directly, and the details of properties can be found
at https://github.com/mscdex/busboy#busboy-methods.
OptionalfieldNameSize?: number
Maximum size of each form field name in bytes. (Default: 100)
OptionalfieldSize?: number
Maximum size of each form field value in bytes. (Default: 1048576)
Optionalfields?: number
Maximum number of non-file form fields. (Default: Infinity)
OptionalfileSize?: number
Maximum size of each file in bytes. (Default: Infinity)
Optionalfiles?: number
Maximum number of file fields. (Default: Infinity)
OptionalheaderPairs?: number
Maximum number of headers. (Default: 2000)
Optionalparts?: number
Maximum number of parts (non-file fields + files). (Default: Infinity)
OptionalpreservePath?: boolean
Preserve the full path of the original filename rather than the basename. (Default: false)
Optionalstorage?: StorageEngine
A StorageEngine responsible for processing files uploaded via Multer.
Takes precedence over dest.
fileFilter?:function
fileFilter(req, file, callback): void
Optional function to control which files are uploaded. This is called
for every file that is processed.
This is the entrypoint for a generator to create a custom set of routes