---
name: "mongoc_gridfs_file_t"
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_t"
---

# mongoc\_gridfs\_file\_t(3)

## SYNOPSIS

```
typedef struct _mongoc_gridfs_file_t mongoc_gridfs_file_t;
```

## DESCRIPTION

This structure provides a MongoDB GridFS file abstraction. It provides several APIs.

- •

  readv, writev, seek, and tell.

- •

  General file metadata such as filename and length.

- •

  GridFS metadata such as md5, filename, content\_type, aliases, metadata, chunk\_size, and upload\_date.

## THREAD SAFETY

This structure is NOT thread-safe and should only be used from one thread at a time.

## RELATED

- •

  *mongoc\_client\_t*

- •

  *mongoc\_gridfs\_t*

- •

  *mongoc\_gridfs\_file\_list\_t*

- •

  *mongoc\_gridfs\_file\_opt\_t*

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
