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. If a configured file size limit was reached, stream will both have a boolean property truncated (best checked at the end of the stream) and emit a 'limit' event to notify you when this happens.įield(fieldname, value, fieldnameTruncated, valueTruncated, transferEncoding, mimeType) - Emitted for each new non-file field found.However, if you don't care about any incoming files, you can simply not listen for the 'file' event at all and any/all files will be automatically and safely discarded (these discarded files do still count towards files and parts limits). you can simply just do stream.resume() if you want to discard the contents), otherwise the 'finish' event will never fire on the Busboy instance. Note: if you listen for this event, you should always handle the stream no matter if you care about the file contents or not (e.g.mimeType contains the 'Content-Type' value for the file stream. transferEncoding contains the 'Content-Transfer-Encoding' value for the file stream. Busboy is a Writable stream Busboy (special) eventsįile(fieldname, stream, filename, transferEncoding, mimeType) - Emitted for each new file form field found.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |