---
name: "mongoc_gridfs_file_set_md5"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_gridfs_file_set_md5"
---

# mongoc\_gridfs\_file\_set\_md5(3)

## SYNOPSIS

```
void
mongoc_gridfs_file_set_md5 (mongoc_gridfs_file_t *file, const char *md5);
```

## PARAMETERS

- •

  **file**: A *mongoc\_gridfs\_file\_t*.

- •

  **str**: A string containing the MD5 of the file.

## DESCRIPTION

Sets the MD5 checksum for **file**.

You need to call *mongoc\_gridfs\_file\_save()* to persist this change.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
