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

mongofiles: get file by _id in addition to filename

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-rc7
    • Fix Version/s: 3.0.0-rc9
    • Component/s: mongofiles
    • Labels:
      None
    • Documentation Changes:
      Needed

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: