title: No MediaTypeFormatter is available to read an object of type 'HttpRequestMessage' from content with media type 'multipart/form-data'
body: <p>I'm adapting a project recently started in .NET Standard to use Azure Functions. I have an HTTP trigger that I am posting directly to from a form. There are only 2 fields: a number input, and a file upload.</p>
  
  <p>When using the function without referencing any other libraries, I cannot use ReadAsFormDataAsync on the HttpRequestMessage. I receive a:</p>
  
  <pre><code>System.Net.Http.UnsupportedMediaTypeException: No MediaTypeFormatter is 
  available to read an object of type 'FormDataCollection' from content with 
  media type 'multipart/form-data'. 
  </code></pre>
  
  <p>I can use ReadAsMultipartAsync and manage to get the post values.</p>
  
  <p>When I reference a .NET Standard library though, I can't even enter the function as it gets completely rejected:</p>
  
  <pre><code>System.Net.Http.UnsupportedMediaTypeException: No MediaTypeFormatter is 
  available to read an object of type 'HttpRequestMessage' from content with 
  media type 'multipart/form-data'
  </code></pre>
  
  <p>I tried creating a brand new skeleton .NET Standard library and referencing that and same thing.</p>
  
  <p>As an additional reference I found <a href="http://intranoggin.com/Blog/March-2017/Azure-Functions-System-Net-Http%E2%80%93A-Very-Painful-Er.aspx" rel="nofollow noreferrer">this post</a>, but I don't seem to be having the same issue.</p>
  
  <p>Was going to file an issue but decided to try here first. Any ideas?</p>
  
  <p>EDIT: This also happens when the enctype is application/x-www-form-urlencoded.</p>