docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

File download always with same name "file.<extension>"

Open andreazerbini opened this issue 1 year ago • 0 comments

Describe the bug

When the API we are calling, is sending a file with correct "Content-disposition" header that contains filename, the browser is downloading a file with a generic filename "file"

Expected behavior

The download of the file from the browser start with the correct filename.

Current behavior

The download of the file from the browser start with a generic filename "file".

Steps to reproduce

Pre-requisites: having an API endpoint that returns a file with correct headers in response (see screenshot) Sending a request to that endpoint and trying to click "Send API Request".

Screenshots

e4bccfd2-7fe3-45b2-b1cb-f8700bcdea41

Your Environment

  • Version used: v3.0.0-beta.4 (Docusaurus version 3.1.0)
  • Environment name and version:
    • Docusaurus side: Chrome Browser 122.0.6261.71 (Official build 64 bit);
    • BE side: SpringBoot BE engine and NGINX web server
  • Operating System and version (desktop or mobile): Windows 11 Desktop

andreazerbini avatar Mar 06 '24 09:03 andreazerbini