Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1644

Support custom GridFS file id values

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.3
    • Affects Version/s: 2.2.3
    • Component/s: GridFS
    • None
    • Fully Compatible

      The 1.x version of the .NET driver allowed applications to use any value they wanted to for the file id of an uploaded GridFS File. The GridFS spec used to guide development of the 2.x version of the .NET driver GridFS API specified that the file id MUST be of type ObjectId and that the value would be generated by the driver itself.

      It has since become evident that there are valid use cases for allowing the application to set its own value for the file id when uploading a GridFS file, including using other types of file id besides ObjectId.

      The GridFS spec is being revised to allow applications to provide custom file id values when uploading GridFS files. The .NET driver will be updated accordingly.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: