Method OpenUploadStream
OpenUploadStream(TFileId, string, GridFSUploadOptions, CancellationToken)
Opens a Stream that can be used by the application to write data to a GridFS file.
GridFSUploadStream<TFileId> OpenUploadStream(TFileId id, string filename, GridFSUploadOptions options = null, CancellationToken cancellationToken = default)
Parameters
id
TFileIdThe file id.
filename
stringThe filename.
options
GridFSUploadOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- GridFSUploadStream<TFileId>
A Stream.