I'm trying to post a simple file into my C# WEB API. Here is how it look in Postman:
This SO thread make it look easy to access the file. It seems that I only need the instruction:
var fileToUpload = HttpContext.Current.Request.Params["document"];
However when I hit the endpoint and I debug, fileToUpload is coming null.
What's wrong??
Thank you