-
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
[develop 2.0] File upload not working in 2.0 #609
Comments
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! |
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. |
this has been fixed in the develop_2.0 branch |
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 the spec doesn't allow specifying a content type for specific form data parameters. It's a limitation of the spec. |
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? |
File upload is not working in 2.0, it comes back with a javascript error
The text was updated successfully, but these errors were encountered: