Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1983

GridFSBucket cannot use a custom id

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.0
    • Component/s: GridFS
    • Minor Change

      with the old GridFS api, I can use an string uuid generated from java for the file id.
      GridFSInputFile.setId("<a string uuid>")
      with the new GridFSBucket api, it seems that I have to use an ObjectId generated by the api.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            youzai001 yuechao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: