Create helper method to access GridFS stream's file document

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.0-alpha1, 1.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Current code includes a Bucket::getIdFromStream() method, but we have nothing to access the stream's file document, which contains other useful fields such as "filename" and "metadata".

      Implement the following methods:

      • Bucket::getFileDocumentForStream($stream)
      • Bucket::getFileIdForStream($stream)

      The latter method is renamed from getIdFromStream().

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: