-
Notifications
You must be signed in to change notification settings - Fork 38.5k
MultipartBodyBuilder
requires parts to be named
#30179
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
Comments
MultipartBodyBuilder
requires parts to be named
Opening with a snarky comment like that does not help in getting attention drawn to your issue. If anything, the reverse is true.
I see that the Javadoc of |
This commit improves the Javadoc of MultipartBodyBuilder, to make it clear that it is intended for multipart/form-data. See gh-30179
Oh, nice, so WebClient now officially doesn't support |
There is some additional context on this. Our multipart support has evolved historically from multipart form data requests, so it is rooted in that. We added "multipart/mixed" and "multipart/related" as supported media types to the codecs and message converters with #23159 and #23209, but in retrospect that was inadequate. In any case, this would be a deeper change, most likely not involving It would help if you provide a bit more context around your case. Do you need both client and server support, or do you make requests to a 3rd party API? Considering the Servlet API also assumes parts have names, there can be more challenges. |
I'm using a 3rd party API that is receiving and responding with multipart/mixed. So I'm interested just in client support. I'm able to send multipart/mixed using As for reading the response it seems RestTemplate can only write multipart/mixed, not read it.
but it's inconvenient to the have to deal with raw bytes from Also I don't see how would it handle reading multipart nested in multipart --it's a real-world scenario |
I have created #30230 to see how much interest there is in the community for Spring to have proper |
Affects: 5.13.15
This is wrong and makes no sense for contents like
multipart/mixed
Field names are only relevant for
multipart/form-data
c.f. https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
The text was updated successfully, but these errors were encountered: