View Source Mongo.GridFs.Upload (mongodb-driver v1.5.0)
The main entry point for uploading files into the grid-fs specified by the bucket struct.
Summary
Functions
Opens a stream that the application can write the contents of the file to. The driver generates the file id if not provided.
Functions
@spec open_upload_stream( Mongo.GridFs.Bucket.t(), String.t(), BSON.document() | nil, Mongo.GridFs.UploadStream.file_id() | nil ) :: Mongo.GridFs.UploadStream.t()
Opens a stream that the application can write the contents of the file to. The driver generates the file id if not provided.
User data for the 'metadata' field of the files collection document.