With the below code I keep getting the error: Cannot implicitly convert type ‘System.Net.Http.MultipartFormDataStreamProvider’ to ‘System.Threading.Tasks.Task>’
MultipartFormDataStreamProvider streamProvider = new MultipartFormDataStreamProvider("c:\\tmp\\uploads");
//Error line
Task<IEnumerable<HttpContent>> bodyparts = await Request.Content.ReadAsMultipartAsync(streamProvider);
I think this is an easy one, but I’m missing it.
I ended up using this and it works great. I found it here
http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2
}