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

Return image or PDF from POST request #812

Closed
wants to merge 1 commit into from

Conversation

dgreenbean
Copy link

In order to return an image or PDF from a POST request, it needs to be possible to set the response type to blob. The data returned also should be the raw binary data instead of a string.

@fehguy
Copy link
Contributor

fehguy commented Jul 19, 2016

OK I want to get support for downloads in here, but we can't expect the window object is available. The swagger-js project works for browser and browser-less environments, so there needs to be conditional checks for the window.

@fehguy
Copy link
Contributor

fehguy commented Jul 29, 2016

If you want to send an updated PR that is safe for non-browser environments, please feel free.

@fehguy fehguy closed this Jul 29, 2016
@dgreenbean
Copy link
Author

This PR was mainly to highlight the issue and a potential fix. I don't know Javascript well enough to tackle a real fix myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants