Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-719

Provide access to _id when creating GridFS file

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2-beta0
    • Affects Version/s: None
    • Component/s: GridFS, libmongoc
    • Labels:
      None

      A newly created mongoc_gridfs_file_t apparently doesn't have access to its chunks, so I need to refetch the file to return a "complete" mongoc_gridfs_file_t. This is the same behavior as with the previous C driver, only that the previous driver gave you access to the ObjectId which would allow you to refetch the file immediately. Fetching by name is obviously ambiguous.

      So please either add a function that gives you access to a GridFS file's ObjectId, or assign the chunks to the file immediately after uploading them.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            msoutier Marius Soutier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: