Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Latest
method GridFSBucket.prototype.openUploadStreamWithId
import { GridFSBucket } from "https://deno.land/x/mongo@v0.33.0/src/gridfs/bucket.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

Returns

Promise<WritableStream<Uint8Array>>