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.

Support for multipart/mixed Content-Type

See original GitHub issue

I have a use case to support the multipart/mixed content type as defined in RFC 2049. Use of this content type includes support for:

  • multiple parts in sequence
  • each part with its own content type and data
  • each part separated by a boundary value included in the HTTP request Content-Type header

It seems like it would be ideal if Swagger could enable defining each part as a parameter with content type and, on submission, have Swagger UI create the MIME boundary, add the boundary to the HTTP request Content-Type header, and assemble the multipart parameters into a multi-part request body using the boundary.

It would be great to support this in Swagger natively.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:6
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
tleydencommented, Dec 3, 2015

Feature request: multipart/related (merging https://github.com/swagger-api/swagger-spec/issues/520 into this)

0reactions
fehguycommented, Feb 1, 2017

See #878

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC1341(MIME) : 7 The Multipart content type
The primary subtype for multipart, "mixed", is intended for use when the body parts are independent and intended to be displayed serially. Any...
Read more >
Attachment Working with Multipart/Mixed Content Type
Mule runtime handles Multipart content as attachments. This article explains how to access all attachment in case of a Multipart/Mixed Content Type.
Read more >
Add support for Multipart/Mixed Content Type #6933 - GitHub
It seems like we need a new multipart body allowing for file uploads and text. That way Postman will know how to generate...
Read more >
Sending multipart/mixed content with Postman Chrome ...
Show activity on this post. Set the Header Content-Type to multipart/mixed . Select the form-data option in Body . Convert all of your...
Read more >
Re: How to support Content-Type: multipart/mixed
content-disposition: form-data; name="pics" Content-type: multipart/mixed, boundary=BbC04y --BbC04y. Content-disposition: attachment; filename="file1.txt"
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