Method OpenUploadStreamAsync
OpenUploadStreamAsync(string, GridFSUploadOptions, CancellationToken)
Opens a Stream that can be used by the application to write data to a GridFS file.
Task<GridFSUploadStream> OpenUploadStreamAsync(string filename, GridFSUploadOptions options = null, CancellationToken cancellationToken = default)
Parameters
filenamestringThe filename.
optionsGridFSUploadOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<GridFSUploadStream>
A Task whose result is a Stream.