Wrong return values in example of open_upload_stream_with_id

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.4
    • Affects Version/s: 2.3.1
    • Component/s: Docs
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the example in the documentation of the open_upload_stream_with_id function it states that it returns both a AsyncIOMotorGridIn object, as well as the id of the uploaded file. This is wrong, as this function actually only returns the grid_in object, as the file_id is provided when calling the function itself.

      Trying to call the function as indicated will result in the following error:
      cannot unpack non-iterable AsyncIOMotorGridIn object

              Assignee:
              Shane Harvey
              Reporter:
              Davide Farina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: