How to set “contentType” field in GridFS?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Linux OS (RHEL), mongocxx driver 3.4, and C++ 11.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 ?
       

            Assignee:
            Unassigned
            Reporter:
            Betty Leung
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: