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

Add multipart content types full support #6

Open
kotokur opened this issue Feb 7, 2019 · 6 comments
Open

Add multipart content types full support #6

kotokur opened this issue Feb 7, 2019 · 6 comments

Comments

@kotokur
Copy link
Collaborator

kotokur commented Feb 7, 2019

Add special tree editor to give the ability to implement complex cases of multipart/form-data, multipart/related and multipart/mixed content types. In this editor we can create parts with it's own content types included multipart types itself. Type of the each value editor will changes depends on selected content type. In this way we get the ability to implement recursive structures as well.

@kotokur
Copy link
Collaborator Author

kotokur commented Feb 7, 2019

Also I suggest to give an option to copy the raw body text that was designed with the tree editor to the clipboard

@kotokur
Copy link
Collaborator Author

kotokur commented Feb 7, 2019

Also you can read related discussions in Postman and Insomnia clients here:
postmanlabs/postman-app-support#1104
Kong/insomnia#623

@ranjan-purbey
Copy link

Is this being worked upon?

@richmar10
Copy link

richmar10 commented Jan 3, 2020

Workaround: I struggled with this as well however I found a short term solution that might work for someone else.

Step 1) Set the Content-Type = multipart/mixed;boundary=xxBOUNDARYxx
Step 2) Set the Body = Raw
Step 3) Body content:

--xxBOUNDARYxx
Content-Type: application/json

{
    "Text": "myfile",
    "Html": "<p>myfile</p>"
}

--xxBOUNDARYxx
Content-Disposition: form-data; name=""; filename="text.txt"
Content-Type: text/plain

Text goes here.
--xxBOUNDARYxx--

The current version of postman seems to be really close to a full multipart implementation (for our use case),

This has been an amazing tool for testing, and I wanted to say thanks for all the improvements you have made over the years!

@dima11221122
Copy link
Contributor

Thank you, @richmar10 for the workaround. We would like to add a convenient editor to manage multipart/mixed body. But safer to assume multipart/mixed is a recursive content-type: multipart/mixed can be as a part of multipart/mixed=) This complicates the issue.

@ash-eng-spin
Copy link

ash-eng-spin commented Feb 1, 2024

Has this ever been updated? I'm on Insomnia 8.6.0 and do not see the ability for the user to edit content-types for the parts in a multi-part request. This is a show stopper for us.

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