I am using HttpClientPOST MultipartFormDataContentfor a Java web application. I upload several StringContentsand one file, which I add as StreamContent, using MultipartFormDataContent.Add(HttpContent content, String name, String fileName), using the method HttpClient.PostAsync(String, HttpContent).
This works fine except when I provide a filename containing German umlauts (I have not tested other non-ASCII characters yet). In this case, filename is encoded with base64. Result for a file named 99 2 LD 353 Temp Äüöß-1.txt
looks like that:
__utf-8_B_VGVtcCDvv73vv73vv73vv71cOTkgMiBMRCAzNTMgVGVtcCDvv73vv73vv73vv70tMS50eHQ___
The Java server displays this encoded file name in its user interface, which confuses users. I cannot change server changes.
How to disable this behavior? Any help would be greatly appreciated.
Thanks in advance!
source
share