---
name: "mongoc_gridfs_get_files"
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_get_files"
---

# mongoc\_gridfs\_get\_files(3)

## SYNOPSIS

```
mongoc_collection_t *
mongoc_gridfs_get_files (mongoc_gridfs_t *gridfs);
```

## PARAMETERS

- •

  **gridfs**: A *mongoc\_gridfs\_t*.

## DESCRIPTION

Retrieves the *mongoc\_collection\_t* containing the file metadata for GridFS. This instance is owned by the *mongoc\_gridfs\_t* and should not be modified or freed.

## RETURNS

Returns a *mongoc\_collection\_t* that should not be modified or freed.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
