Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method GridFSBucket.prototype.openUploadStream
import { GridFSBucket } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";

Opens a Stream that the application can write the contents of the file to. The driver generates the file id.

Returns a Stream to which the application will write the contents.

Note: this method is provided for backward compatibility. In languages that use generic type parameters, this method may be omitted since the TFileId type might not be an ObjectId.

Parameters

filename: string
optional
options: GridFSUploadOptions