title: Setting a "Content-Disposition" HTTP Header in Web API
body: <p>I am trying to create integration test for my upload picture action.
  Raw request created from browser is like below;</p>
  
  <pre><code>POST /api/UpdateImage HTTP/1.1
  Host: upload.qwe.com
  Authorization: bearer KuThe6Wx/CW1TO/HVS+u3Tov3MRh8qTMDrSvQ09nMnP4OgYp
  Accept-Encoding: gzip, deflate
  Content-Type: multipart/form-data; boundary=Boundary-D60385FA-C164-45B0-A81E-0F6488F8E1E1
  Content-Length: 375488
  Accept-Language: en-us
  Accept: */*
  Connection: keep-alive
  User-Agent: Chrome
  Pragma: no-cache
  Cache-Control: no-cache
  
  --Boundary-D60385FA-C164-45B0-A81E-0F6488F8E1E1
  Content-Disposition: form-data; name="fileName"
  
  image.jpg
  --Boundary-D60385FA-C164-45B0-A81E-0F6488F8E1E1
  Content-Disposition: form-data; name="fileUpload"; filename="image.jpg"
  Content-Type: image/jpeg
  </code></pre>
  
  <p>And my code for integration test;</p>
  
  <pre><code>MultipartContent multipartContent = new MultipartContent();
   multipartContent.Headers.TryAddWithoutValidation("Content-Type", "multipart/form-data; boundary=Boundary-D60385FA-C164-45B0-A81E-0F6488F8E1E1");
  ContentDispositionHeaderValue contentDispositionHeaderValue = new ContentDispositionHeaderValue("form-data")
              {
                  Name = "fileName"
              };
              multipartContent.Headers.ContentDisposition = contentDispositionHeaderValue;
  // StreamContent
          FileStream fileStream = File.Open(@"./Assets/" + fileName, FileMode.Open);
          StreamContent stream = new StreamContent(fileStream);
          multipartContent.Add(stream);
  httpRequestMessage.Content = multipartContent;
          return httpRequestMessage;
  </code></pre>
  
  <p>But I cannot set second part of the data which has <code>Content-Disposition: form-data; name="fileUpload"; filename="image.jpg"</code></p>
  
  <p>How can I achieve this?</p>
  
  <p>Problem Summary:</p>
  
  <p><a href="https://i.stack.imgur.com/iqkTy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iqkTy.png" alt="enter image description here"></a></p>