title: Upload file test with Postman
body: <p>I am testing a file upload to SharePoint online with Postman. In my post request I set the body to form-data and add a file param with a text file called a.txt. The text file contains the text</p>
  
  <pre><code>one
  two
  three
  </code></pre>
  
  <p>When I execute the request my file is uploaded but when I open the file the contents is</p>
  
  <pre><code>----------------------------235004993628819232914336
  Content-Disposition: form-data; name="file"; filename="a.txt"
  Content-Type: text/plain
  
  one
  two
  three
  ----------------------------235004
  </code></pre>
  
  <p>I have tried setting the Content-Type header to</p>
  
  <p>application/x-www-form-urlencoded
  or
  multipart/form-data</p>
  
  <p>But no luck</p>