
Parts - integer - For multipart forms, the max number of parts (fields + files) (Default: Infinity). Valid properties are:įieldNameSize - integer - Max field name size (in bytes) (Default: 100 bytes).įieldSize - integer - Max field value size (in bytes) (Default: 1 MiB, which is 1024 x 1024 bytes).įields - integer - Max number of non-file fields (Default: Infinity).įileSize - integer - For multipart forms, the max file size (in bytes) (Default: Infinity).įiles - integer - For multipart forms, the max number of file fields (Default: Infinity). Limits - object - Various limits on incoming data. (Default: (fieldName, contentType, fileName) => (contentType = 'application/octet-stream' || fileName != undefined)) text/plain, image/jpeg, application/octet-streamįileName - string The name of a file supplied by the part. It has following parameters:įieldName - string The name of the field.ĬontentType - string The content-type of the part, e.g. IsPartAFile - function - Use this function to override the default file detection functionality. PreservePath - boolean - If paths in the multipart 'filename' field shall be preserved. HighWaterMark - integer - highWaterMark to use for this Busboy instance (Default: WritableStream default).įileHwm - integer - highWaterMark to use for file streams (Default: ReadableStream default).ĭefCharset - string - Default character set to use when one isn't defined (Default: 'utf8'). Headers - object - These are the HTTP headers of the incoming request, which are used by individual parsers.ĪutoDestroy - boolean - Whether this stream should automatically call. The constructor takes the following valid config settings: (constructor)(config) - Creates and returns a new Busboy instance.

No more 'file' events will be emitted.įieldsLimit() - Emitted when specified fields limit has been reached.

No more 'file' or 'field' events will be emitted.įilesLimit() - Emitted when specified files limit has been reached. PartsLimit() - Emitted when specified parts limit has been reached.
