Protected
Readonly
metadataProtected
Readonly
optionsProtected
buildOptional
dest?: stringThe 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.
Ignored if storage
is set.
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.
Optional
fieldMaximum size of each form field name in bytes. (Default: 100)
Optional
fieldMaximum size of each form field value in bytes. (Default: 1048576)
Optional
fields?: numberMaximum number of non-file form fields. (Default: Infinity)
Optional
fileMaximum size of each file in bytes. (Default: Infinity)
Optional
files?: numberMaximum number of file fields. (Default: Infinity)
Optional
headerMaximum number of headers. (Default: 2000)
Optional
parts?: numberMaximum number of parts (non-file fields + files). (Default: Infinity)
Optional
preservePreserve the full path of the original filename rather than the basename. (Default: false)
Optional
storage?: StorageEngineA StorageEngine
responsible for processing files uploaded via Multer.
Takes precedence over dest
.
Optional function to control which files are uploaded. This is called for every file that is processed.
The Express Request
object.
Object containing information about the processed file.
a function to control which files should be uploaded and which should be skipped.
Protected
buildProtected
buildProtected
buildProtected
getProtected
pathProtected
shouldGenerated using TypeDoc
This is the entrypoint for a generator to create a custom set of routes