Method UploadFromStream
UploadFromStream(TFileId, string, Stream, GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
void UploadFromStream(TFileId id, string filename, Stream source, GridFSUploadOptions options = null, CancellationToken cancellationToken = default)
Parameters
id
TFileIdThe file id.
filename
stringThe filename.
source
StreamThe source.
options
GridFSUploadOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.