PaloAltoNetworks / PaloAltoNetworks/docusaurus-openapi-docs

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

Open
#733 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug roadmap
Dominant language
TypeScript
Stars
1.1k
Forks
315
Avg merge
7d 5h
Merged PRs (30d)
7

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by using the browser's "Send API Request" action against an endpoint that returns a Content-Disposition filename, then inspect how the downloaded file name is chosen. The work is done when the browser download uses the filename from the response header instead of the generic "file" name.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, react, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.