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

Provide access to _id when creating GridFS file

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 1.2-beta0
    • GridFS, libmongoc
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: