Skip to content

Downloaded file named incorrectly for responses with "attachment" #609

@fehbari

Description

@fehbari

Bug report:

When a response contains a Content-Disposition header with attachment and a filename, the "Download" button in RapiDoc UI saves the file with leading and trailing _

For example, a response containing:

Content-Disposition: attachment; filename="sample.jpg"

will appropriately display the "Download" button to download the binary file. However, the downloaded file is named _sample.jpg_ instead of sample.jpg.

I can reproduce this consistently, and the issue doesn't happen with Swagger UI when testing the same API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions