Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method GridFSBucket.prototype.openUploadStreamWithId
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 application provides a custom file id.

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

Parameters

id: FileId
filename: string
optional
options: GridFSUploadOptions