title: Unexpected end of Stream, the content may have already been read by another component. Microsoft.AspNetCore.WebUtilities.MultipartReaderStream
body: <p>I get an exception when I try to read multi part content from the request saying the content may have already been read by another component.</p>
  
  <pre><code> if (MultipartRequestHelper.IsMultipartContentType(Request.ContentType))
              {
                  // Used to accumulate all the form url encoded key value pairs in the 
                  // request.
                  var formAccumulator = new KeyValueAccumulator();
  
                  var boundary = Request.GetMultipartBoundary();
                  var reader = new MultipartReader(boundary, HttpContext.Request.Body);
                  var section = await reader.ReadNextSectionAsync();
                  while (section != null)
                  {
                      ContentDispositionHeaderValue contentDisposition;
                      var hasContentDispositionHeader =
                          ContentDispositionHeaderValue.TryParse(section.ContentDisposition, out contentDisposition);
                  }
              }
  </code></pre>