Skip to content

Unable to support multiple file upload #491

@sefasenturk95

Description

@sefasenturk95

I am trying to create an endpoint where multiple files can be uploaded to. Unfortunately that is not possible right now as it is not parsing to a list[UploadFile].

requestBody:
  content:
    multipart/form-data:
      schema:
        type: object
        properties:
          filename:
            type: array
            items:
              type: string
              format: binary

I expected:

def post_ingestion_start_pipeline(self, file: list[UploadFile]) -> None:

Instead I got:

def post_ingestion_start_pipeline(self, file: UploadFile) -> None:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions