mongodb-driver v0.6.2 Mongo.GridFs.Upload View Source
The main entry point for uploading files into the grid-fs specified by the bucket struct.
Link to this section Summary
Functions
Opens a stream that the application can write the contents of the file to. The driver generates the file id.
Link to this section Functions
Link to this function
open_upload_stream(bucket, filename, meta \\ nil)
View Source
open_upload_stream(bucket, filename, meta \\ nil)
View Source
open_upload_stream(Mongo.GridFs.Bucket.t(), String.t(), BSON.document() | nil) ::
Mongo.GridFs.UploadStream.t()
open_upload_stream(Mongo.GridFs.Bucket.t(), String.t(), BSON.document() | 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.
User data for the 'metadata' field of the files collection document.