mongoc_gridfs_file_set_content_type(3)

mongoc_gridfs_file_set_content_type3

Usage

void
mongoc_gridfs_file_set_content_type (mongoc_gridfs_file_t *file,
                                     const char *content_type);

Parameters

•

file: A mongoc_gridfs_file_t.

•

str: A string containing the content type.

Overview

Sets the content type for the gridfs file. This should be something like "text/plain".

You need to call mongoc_gridfs_file_save() to persist this change.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.