* Returns a writable stream (GridFSBucketWriteStream) for writing * buffers to GridFS. The stream's 'id' property contains the resulting * file's id. * * @param filename - The value of the 'filename' key in the files doc * @param options - Optional settings.
(
filename: string,
options?: GridFSBucketWriteStreamOptions
)
| 114 | */ |
| 115 | |
| 116 | openUploadStream( |
| 117 | filename: string, |
| 118 | options?: GridFSBucketWriteStreamOptions |
| 119 | ): GridFSBucketWriteStream { |
| 120 | return new GridFSBucketWriteStream(this, filename, { |
| 121 | timeoutMS: this.s.options.timeoutMS, |
| 122 | ...options |
| 123 | }); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Returns a writable stream (GridFSBucketWriteStream) for writing |
no outgoing calls