Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-674

Wrong return values in example of open_upload_stream_with_id

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.4
    • Affects Version/s: 2.3.1
    • Component/s: Docs
    • 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@mongodb.com Shane Harvey
            Reporter:
            farinadavide96@gmail.com Davide Farina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: