Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-618

mongofiles: get file by _id in addition to filename

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc9
    • Affects Version/s: 3.0.0-rc7
    • Component/s: mongofiles
    • Labels:
      None
    • Iteration 0
    • Needed

      mongofiles can currently only get files from GridFS by filename.
      However filenames are not unique on GridFS, so if multiple files have the same name on GridFS, then mongofiles gets one of them, in an undefined behavior.

      get by _id would be a great feature.

      Currently I have to patch the DB to make the filename unique for the duration of the download, which is not great as it breaks things during that time.

      A full query could also be useful, but not strictly needed: the query could be done with the mongo shell, and then downloads by _id with mongofiles.

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            trsystran Thomas Riccardi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: