{"repo":"pillarjs/multiparty","free":true,"listed":false,"github":"https://github.com/pillarjs/multiparty","clone":"git clone https://github.com/pillarjs/multiparty.git","description":"A node.js module for parsing multipart-form data requests which supports streams2","language":"JavaScript","stars":1298,"topics":["javascript","nodejs","multipart","form-data"],"license":"MIT","category":"dev-tools","readme_excerpt":"multiparty [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][github-actions-ci-image]][github-actions-ci-url] [![Test Coverage][coveralls-image]][coveralls-url] Parse http requests with content-type multipart/form-data , also known as file uploads. See also busboy - a faster alternative which may be worth looking into. Installation This is a Node.js module available through the npm registry. Installation is done using the npm install command: Usage See examples. Parse an incoming multipart/form-data request. API multiparty.Form Creates a new form. Options: encoding - sets encoding for the incoming form fields. Defaults to utf8 . maxFieldsSize - Limits the amount of memory all fields (not files) can allocate in bytes. If this value is exceeded, an error event is emitted. The default size is 2MB. maxFields - Limits the number of fields that will be parsed before emitting an error event. A file counts as a field in this case. Defaults to 1000. maxFilesSize - Only relevant when autoFiles is true . Limits the total bytes accepted for all files combined. If this value is exceeded, an error event is emitted. The default is Infinity . autoFields - Enables field events and disables part events for fields. This is automatically set to true if you add a field listener. autoFiles - Enables file events and disables part events for files. This is automatically set to true","default_branch":null,"files":null,"tree":[],"storefront":"/r/pillarjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pillarjs/multiparty/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}