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

Comments

Projects
None yet
5 participants
@mkrouwer

mkrouwer commented Sep 23, 2014

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

@fehguy fehguy changed the title from File upload not working in 2.0 to [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 added the type: bug label Dec 30, 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

This comment has been minimized.

Show comment
Hide comment
@fehguy

fehguy Dec 31, 2014

Contributor

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!

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

This comment has been minimized.

Show comment
Hide comment
@edwardpig

edwardpig Jan 2, 2015

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.

edwardpig commented Jan 2, 2015

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

This comment has been minimized.

Show comment
Hide comment
@fehguy

fehguy Jan 31, 2015

Contributor

this has been fixed in the develop_2.0 branch

Contributor

fehguy commented Jan 31, 2015

this has been fixed in the develop_2.0 branch

@stevendearborn

This comment has been minimized.

Show comment
Hide comment
@stevendearborn

stevendearborn May 5, 2016

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.

stevendearborn commented May 5, 2016

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

This comment has been minimized.

Show comment
Hide comment
@webron

webron May 5, 2016

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@stevendearborn

stevendearborn May 6, 2016

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?

stevendearborn commented May 6, 2016

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