Support for verbatim multipart/related S/MIME uploads
See original GitHub issueThe library already supports 2 variants of multipart uploads, which covers most use-cases.
I have a third use-case now and wonder if this can be already done with the library or would become a feature request.
I have to upload S/MIME multipart/related
bodies which I already prepare myself and place them in the apps storage folder like this YYYYMMDDHHMMSSMS-<guid>.upload
The content of this file is the multipart/related
body that needs to be uploaded. It must not be base64 encoded or anything.
Does this already work when pointing the request to this local file and setting the Content-Type
header to multipart/related
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
RFC 2387: The MIME Multipart/Related Content-type
Multipart /Related MIME entities may contain Content-Disposition headers that ... RFC 2387 Multipart/Related August 1998 Responsibility for the display or ...
Read more >MultipartStream (Apache Commons FileUpload 1.4 API)
Low level API for processing file uploads. This class can be used to process data streams conforming to MIME 'multipart' format as defined...
Read more >Wiremock support for multipart/related #1047
An open PR exists to update Wiremock to "Recognize multipart/related and multipart/mixed" (https://github.com/tomakehurst/wiremock/pull/1415).
Read more >PROJECT DOCUMENTATION MeF Submission ...
1.3 Purpose. The purpose of this document is to describe the structure of a Submission and a Transmission file supported by MeF (Modernized...
Read more >Spring boot multipart/related mime type support
If you do name the form-data then you can use the second example ("/uploadParts"). I didn't do the example with the image or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I decided to implement both discussed solutions (#137 and #138); #137 will probably be the first one I’ll work on.
Your comment makes total sense to me, and I think it would be a nice feature to add to the library. I’m still pondering what solution to go with though.
As for your suggested workaround: every upload request is mapped to a multipart body, so this won’t work. This is what happens:
It makes a good point for the
verbatimBody
orrawBody
solution we talked about earlier in this thread though, because that would definitely solve your problem right now.I’ll let you know what I decide on soon!