Mongo.GridFs.Upload (mongodb-driver v1.4.0) 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 if not provided.

Link to this section Functions

Link to this function

open_upload_stream(bucket, filename, meta \\ nil, file_id \\ nil)

View Source

Specs

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.