Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File download not start for some mimeType #734

Open
andreazerbini opened this issue Mar 6, 2024 · 0 comments
Open

File download not start for some mimeType #734

andreazerbini opened this issue Mar 6, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed and we are accepting pull requests from anyone willing to take this on.

Comments

@andreazerbini
Copy link

Describe the bug

When we are calling an API endpoint that response with correct headers and content for download a file with certain extensions the download doesn't start.
The response has the Content-Disposition and Content-Type but they are ignored and instead of downloading, the file's content is displayed, probably because the mimetype is not handled correctly.

Expected behavior

The download of the file starts and is shown the response in the UI.

Current behavior

The download of the file doesn't start and is shown also the content in the response in the UI

Steps to reproduce

Pre-requirements: having an endpoint API that can be used to download every type of file.
Call that endpoint with UI

Screenshots

Example of p7m:

3f9fe7c7-1840-44f8-a0df-13006a938276

Example of txt:

79d2a9f9-0852-4f89-b5c7-75b581770f4e

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 andreazerbini added the bug Something isn't working label Mar 6, 2024
@sserrata sserrata added the help wanted Extra attention is needed and we are accepting pull requests from anyone willing to take this on. label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed and we are accepting pull requests from anyone willing to take this on.
Projects
None yet
Development

No branches or pull requests

2 participants