Skip to content

Python client will not take list of files #2036

@scottrw93

Description

@scottrw93

I am trying to upload a list of files with the python client but the files are never processed as files but are treated as a list of strings

"/uploadImages" : {
  "post" : {
    "tags" : [ "specific_alarm" ],
    "summary" : "uploads images of cars",
    "description" : "",
    "operationId" : "uploadMultipleFiles",
    "consumes" : [ "multipart/form-data" ],
    "produces" : [ "application/json" ],
    "parameters" : [ {
      "name" : "files",
      "in" : "formData",
      "description" : "file detail",
      "required" : true,
      "type" : "array",
      "items" : {
        "type" : "file"
      },
      "collectionFormat" : "multi"
    } ],
    "responses" : {
      "200" : {
        "description" : "successful operation"
      }
    }
  }
}

This gives the following error

'list' does not have the buffer interface

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions