-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Use filename disposition parameter in downloads #1991
Milestone
Comments
davehagler
added a commit
to davehagler/swagger-ui
that referenced
this issue
Feb 24, 2016
…response header
fehguy
added a commit
that referenced
this issue
Feb 25, 2016
Fix Issue #1991 filename parameter in content disposition response he…
Fixed by #1993. |
vincent-zurczak
pushed a commit
to roboconf/swagger-ui
that referenced
this issue
Aug 19, 2016
…response header
vincent-zurczak
pushed a commit
to roboconf/swagger-ui
that referenced
this issue
Aug 19, 2016
Fix Issue swagger-api#1991 filename parameter in content disposition response he…
This was referenced Dec 15, 2017
@davehagler @webron |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently when an api returns "content-type": "application/octet-stream" and "content-disposition": "attachment", a filename is generated for the download that looks like
[content type]:[url parameters]:generated
In cases where the api returns a filename= disposition parameter, this value could be used when saving the downloaded file.
For example if this header is sent in the response
"content-disposition": "attachment; filename=my_file.txt"
Then the downloaded file would be called "my_file.txt"
The text was updated successfully, but these errors were encountered: