Handle for this stream's corresponding bucket
The value of the 'filename' key in the files doc
Optional settings.
end()
was called and the write stream successfully wrote the file metadata and all the chunks to MongoDB.
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Places this write stream into an aborted state (all future writes fail) and deletes all chunks that have already been written.
Event emitter The defined events on documents including:
Tells the stream that no more data will be coming in. The stream will persist the remaining data to MongoDB, write the files document, and then emit a 'finish' event.
Write a buffer to the stream.
Buffer to write
False if this write required flushing a chunk to MongoDB. True otherwise.
Returns a list listener for a specific emitter event name.
Generated using TypeDoc
A writable stream that enables you to write buffers to GridFS.
Do not instantiate this class directly. Use
openUploadStream()
instead.