DOKK / manpages / debian 11 / libmongoc-doc / mongoc_gridfs_file_save.3.en
MONGOC_GRIDFS_FILE_SAVE(3) libmongoc MONGOC_GRIDFS_FILE_SAVE(3)

mongoc_gridfs_file_save - mongoc_gridfs_file_save()

bool
mongoc_gridfs_file_save (mongoc_gridfs_file_t *file);


file: A mongoc_gridfs_file_t.

Saves modifications to file to the MongoDB server.

If an error occurred, false is returned and the error can be retrieved with mongoc_gridfs_file_error().

Modifying GridFS files is NOT thread-safe. Only one thread or process can access a GridFS file while it is being modified.

Returns true if successful, otherwise false.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6