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

[develop 2.0] File upload not working in 2.0 #609

Closed
mkrouwer opened this issue Sep 23, 2014 · 6 comments
Closed

[develop 2.0] File upload not working in 2.0 #609

mkrouwer opened this issue Sep 23, 2014 · 6 comments

Comments

@mkrouwer
Copy link

File upload is not working in 2.0, it comes back with a javascript error

@fehguy fehguy changed the title File upload not working in 2.0 [develop 2.0] File upload not working in 2.0 Sep 26, 2014
@fehguy fehguy added this to the v2.1.0 milestone Sep 26, 2014
@fehguy fehguy modified the milestones: v2.1.0-alpha.8, v2.1.0 Dec 30, 2014
fehguy added a commit that referenced this issue Dec 31, 2014
@fehguy
Copy link
Contributor

fehguy commented Dec 31, 2014

Hi, can you please pull from the develop branch and try it out? Made some updates in the JS library to address this issue. Thanks!

@edwardpig
Copy link

This change resolves my original issue, but I've encountered another.

Now when I click 'Try it out!', I get a JavaScript error on l. 753 of swagger-client.js: 'Uncaught TypeError: Cannot read property 'api' of undefined'.

Thanks.

@fehguy
Copy link
Contributor

fehguy commented Jan 31, 2015

this has been fixed in the develop_2.0 branch

@stevendearborn
Copy link

Is there a test sample for using multipart/form-data and single file upload that the Swagger UI user can specify the content-type for the file contents? I am having trouble specifying this in Swagger 2.0 in a way that generates the correct request.

@webron
Copy link
Contributor

webron commented May 5, 2016

@stevendearborn the spec doesn't allow specifying a content type for specific form data parameters. It's a limitation of the spec.

@stevendearborn
Copy link

I have seen screen captures of this working with Swagger 1.2, where Swagger UI paces a content-type drop-down box next to the file upload command button. Is this still possible in Swagger 2.0? Does anyone have a Swagger 2.0 example that works in Swagger UI?

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

No branches or pull requests

5 participants