Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1722

How to set “contentType” field in GridFS?

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Linux OS (RHEL), mongocxx driver 3.4, and C++ 11.

    Description

      I'm writing a RESTful call to save JPEG files in my MongoDB instance. I would like to set the field contentType in the document when I upload to the fs.files collection. However I don't see a way to set that field even after checking the uploader and bucket classes.

      How do I set the contentType field in the in a document in fs.files ?
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            betty.leung@interpreta.com Betty Leung
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: