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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |