Use the
MultipartFormDataContent class[
^]:
using (var form = new MultipartFormDataContent())
using (var stream = File.OpenRead(@"Path\To\Your\File.ext"))
using (var streamContent = new StreamContent(stream))
{
form.Add(streamContent, "files");
form.Add(new StringContent("<{\"DocName\": \"Test\"}>"), "Info");
response = await client.PostAsync(null, form);
}