Alex Wood 6ea8ff3a17
[java-client][resteasy] fix multipart requests (#16517)
This patch fixes two issues with the Resteasy generated client code.
The first is the usage of a deprecated method, getFormData.  The fix for
this issue was originally conceived by @peter-seitz.

The second issue was a problem in how the Content-Disposition header was
being constructed.  If we had a file named "test.txt" and were uploading
it to a field named "myFile", the Content-Disposition header should look
like

Content-Disposition: form-data; name="myFile"

Instead, the code was using the file's name (rather than the field name)
in the name directive and the header looked like

Content-Disposition: form-data; name="test.txt"

The Content-Disposition header can take an optional directive, filename,
but I have not included that here as that directive is mostly useful for
file downloads and not uploads.
2023-09-08 15:07:49 +08:00
..
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00