Skip to content

Can no longer upload file using multipart file upload #5997

@travishaagen

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions