How do I get the file that is received here:
[HttpPost]
public async Task<IHttpActionResult> Post(HttpRequestMessage request)
I am attaching the file like this, but it is sent without extension and with a name I do not want
foreach (MultipartFileData file in provider.FileData)
{
mail.Attachments.Add(new Attachment(file.LocalFileName));
}