You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have also tried with content-type: application/octet-stream instead of pdf but the same issue.
when I click on "download" from swagger, it is downloading with "application_pdf_pdf_blob_http___nameOftheHost_e64cc118-ce7c-4d7d-b795-288a4dc309c2.pdf" instead of "Category Sales and Profit Performance.pdf"
Note: I also tried with Swagger-UI: 3.52.5. The issue is still present.
I have download the source code and checked, that logic to fetch the name of the file from "fileName" is not present under Swagger-ui/dist/swagger-ui.js
The text was updated successfully, but these errors were encountered:
Can confirm. As a consequence of this bug, the swagger-ui-react library is also unable to pick up the content-disposition header's filename (and so the file downloader window doesn't know the correct format of the file to be downloaded).
Versions:
Swagger-UI: 3.25.0
Swagger-Client: 3.10.9
Edge: 95.0
Chrome: 95.0
The same issue was encountered here #1991 and it solved in #1993 in swagger-ui version
2.2.1
However, I am still experiencing the same issue regarding the file name for the octet-stream media type.
Response Header:
Code wise:
I have also tried with
content-type: application/octet-stream
instead of pdf but the same issue.when I click on "download" from swagger, it is downloading with "application_pdf_pdf_blob_http___nameOftheHost_e64cc118-ce7c-4d7d-b795-288a4dc309c2.pdf" instead of "Category Sales and Profit Performance.pdf"
Note: I also tried with
Swagger-UI: 3.52.5
. The issue is still present.I have download the source code and checked, that logic to fetch the name of the file from "fileName" is not present under
Swagger-ui/dist/swagger-ui.js
The text was updated successfully, but these errors were encountered: