OptionalallowOptionalcreateIf true, makes direct folder uploads possible.
OptionalenabledOptionalencodingsets encoding for incoming form fields
OptionalfilenameUse it to control newFilename. Must return a string. Will be joined with options.uploadDir.
Optionalfilewhich by default writes to host machine file system every file parsed; The function should return an instance of a Writable stream that will receive the uploaded file data. With this option, you can have any custom behavior regarding where the uploaded file data will be streamed for. If you are looking to write the file uploaded in other types of cloud storages (AWS S3, Azure blob storage, Google cloud storage) or private file storage, this is the option you're looking for. When this option is defined the default behavior of writing the file in the host machine file system is lost.
OptionalfilterOptionalhashinclude checksums calculated for incoming files, set this to some hash algorithm, see crypto.createHash for available algorithms
Optionalkeepto include the extensions of the original files or not
Optionalmaxlimit the number of fields, set 0 for unlimited
Optionalmaxlimit the amount of memory all fields together (except files) can allocate in bytes
Optionalmaxlimit the amount of uploaded files, set Infinity for unlimited
Optionalmaxlimit the size of uploaded file
Optionalmaxlimit the size of the batch of uploaded files
Optionalminthe minium size of uploaded file
Optionalmultipleswhen you call the .parse method, the files argument (of the callback) will contain arrays of files for inputs which submit multiple files using the HTML5 multiple attribute. Also, the fields argument will contain arrays of values for fields that have names ending with '[]'
Optionaluploadthe directory for placing file uploads in. You can move them later by using fs.rename()
allow upload empty files