Repository navigation
Conversation
|
Flagging an overlap I should have noted when opening this: #348 (@sahilleth, Feb 2026) already fixes the Where the two differ, in case it's useful for deciding: This PR additionally fixes the second defect in #365 — Unknown extensions. #348 returns One small thing worth taking from here into whichever PR you merge:
Happy to close this in favour of #348 and re-submit the duplicate-part fix separately if that's cleaner for review. |
|
closing this since it hasn't been picked up, happy to reopen if it's useful |
Problem
The multipart serializer had two issues when uploading files:
getMediaTypecompared file extensions using==, causing supported extensions to fall through to theimage/pdffallback. PNGs, JPEGs, and PDFs were therefore sent with incorrect MIME types.fileRequestBodyadded thefileas a binary multipart part and then added it again as a regular form field, causing the local filesystem path to be sent as a secondfilevalue.Fix
jpg,jpeg,jfif,png, andpdf.Locale.ROOT.filefield from being added twice to multipart requests.Tests
Added regression tests covering:
.PNGfilemultipart partVerification
pom.xmlFixes #365