MONGOC_GRIDFS...T_ABORT_UPLOAD(3)

πŸ’… MONGOC_GRIDFS_BUCKET_ABORT_UPLOAD(3) πŸ’…

okay so bestie, welcome to the libmongoc manpage for mongoc_gridfs_bucket_abort_upload β€” yes that's a long name, no I will not be shortening it, it's giving full government name energy and we respect it 🫢


✨ SYNOPSIS ✨

bool
mongoc_gridfs_bucket_abort_upload (mongoc_stream_t *stream);

literally that's it. one function. one bool. icon behaviour honestly πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • stream β€” a mongoc_stream_t that you got from mongoc_gridfs_bucket_open_upload_stream() or mongoc_gridfs_bucket_open_upload_stream_with_id(). like, it has to come from one of those two, no random streams, we're not doing that today πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

Aborts the upload of a GridFS upload stream. that's the whole vibe β€” you're calling it quits on the upload, and this is the function that does the quitting ✨ no cap, that's literally what it's for.


🌸 RETURNS 🌸

Returns true on success πŸ’–. Returns false otherwise β€” and when that happens it sets an error on stream, so bestie please check that error, do not just ignore it, that's not the moment to be mysterious 😭

⭐ SEE ALSO ⭐

  • mongoc_gridfs_bucket_open_upload_stream()
  • mongoc_gridfs_bucket_open_upload_stream_with_id()

(yes, the two functions from the params section β€” it's a whole little friend group, they come as a set 🫢)


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” periodt.


2009-present, MongoDB, Inc. β€” iconic longevity, honestly.


and that's the whole page!! πŸ’– this little beauty shipped as part of libmongoc 2.5.6, dated Oct 09, 2026 β€” go forth and abort those uploads responsibly, mwah πŸ§šπŸ’œ

πŸ“¦ where this page comes from