I have to send a XmlDocument to an API on Framework 4.5.1. In the sending API, I tried to send, via POST, the xmlStream using MultipartFormDataContent:
var multipartContent = new MultipartFormDataContent
{
{ new StreamContent(options.XmlStream), "xmlFile", "filename" }
};
In the receiving end, I can't use IFormFile, because of the API version.
I also have to avoid base64.
I tried to receive it as MultipartFormDataContent, but it is not working.
So, I need this to work in any way, but I can't update the Framework in the API's, since it could just crash everything.
Sending API: .Net Standard 2.0
Receiving API: .Net 4.5.1