---
name: "mongoc_gridfs_bucket_abort_upload"
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_bucket_abort_upload"
---

# mongoc\_gridfs\_bucket\_abort\_upload(3)

## SYNOPSIS

```
bool
mongoc_gridfs_bucket_abort_upload (mongoc_stream_t *stream);
```

## PARAMETERS

- •

  **stream**: A *mongoc\_stream\_t* created by *mongoc\_gridfs\_bucket\_open\_upload\_stream()* or *mongoc\_gridfs\_bucket\_open\_upload\_stream\_with\_id()*.

## DESCRIPTION

Aborts the upload of a GridFS upload stream.

## RETURNS

True on success. False otherwise, and sets an error on **stream**.

**SEE ALSO:**

```
mongoc_gridfs_bucket_open_upload_stream()
```

```
mongoc_gridfs_bucket_open_upload_stream_with_id()
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
