question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When reporting an issue, please provide the following details:

  • swagger-ui version

3.0.10

  • a swagger file reproducing the issue

https://github.com/swagger-api/swagger-ui/blob/master/src/core/curlify.js#L21

'/demo/upload': {
  post: {
    responses: {
      200: {
        description: "Success"
      }
    },
    consumes: [
      "multipart/form-data"
    ],
      parameters: [
        {
          type: "string",
          maxLength: 64,
          description: "登录 Auth Token",
          name: "auth",
          in: "formData"
        },
        {
          type: "file",
          description: "要上传的文件",
          name: "file",
          in: "formData",
          'x-mimetype': "image/jpeg, image/png"
        }
      ],
        tags: [
          "demo"
        ]
  }
}

wx20170607-142011

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
willincommented, Jul 9, 2017
curl -X POST "http://127.0.0.1:3300/upload" -H "accept: application/json" -H "content-type: multipart/form-data" -F "auth=1111111" -F "file=@grid-18px-masked.png;type=image/png" -F "type=userverify"

file upload is now ok.

0reactions
webroncommented, Jul 10, 2017

Okay, closing this one as fixed then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reporting documentation bugs in curl got easier
File a bug about this page – takes the user directly to a new issue in the github issue tracker with the title...
Read more >
curl is at curl.se / Bugs / #1084 curl -f stops after first error
When trying to download a group of files with the -f option stops after the first error. This message appears when a file...
Read more >
T228741 REST API examples using `curl -F` are incorrect and ...
REST API examples using `curl -F` are incorrect and can lead to confusing errors. Open, Needs TriagePublic.
Read more >
curl -F what does it mean? php instagram - Stack Overflow
This causes curl to POST data using the Content-Type ... Issuing a curl -F command issues a http request with form submission data....
Read more >
curl.1 the man page
This flag will still allow curl to output and save that content but also to return error 22. This is an alternative option...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found