Skip to content

Can no longer upload file using multipart file upload #5997

Closed

Description

@travishaagen

Q&A

  • OS: macOS
  • Browser: chrome
  • Version: 81.0.4044.129
  • Method of installation: dist assets
  • Swagger-UI version: 3.25.2
  • Swagger/OpenAPI version: Swagger 2.0

Content & configuration

Example Swagger/OpenAPI definition:

      "parameters": [
        {
          "name": "multipart-form",
          "in": "formData",
          "description": "One or more CSV files to upload.",
          "required": true,
          "type": "file"
        }
      ]
    }

Describe the bug you're encountering

When you choose a file to upload, the UI mistakenly thinks that there is a validation error and will prevent execution of the request.

To reproduce...

Configure an operation parameter as shown in the JSON above.

Expected behavior

Choosing a file should allow the request to be executed. This problem is not present in Swagger UI version 3.24.3.

Screenshots

upload

Activity

  1. tim-lai commented on May 11, 2020

    @tim-lai
    Contributor

    @travishaagen Hi Travis, thanks for reporting this issue! This is indeed a regression in the most recent release, and will be fixed in the next release.

  2. almostjulian commented on May 12, 2020

    @almostjulian

    What's the timeline for release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions