Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-215

Create helper method to access GridFS stream's file document

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0-alpha1, 1.1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: