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

```
one
two
three

```

When I execute the request my file is uploaded but when I open the file the contents is

```
----------------------------235004993628819232914336
Content-Disposition: form-data; name="file"; filename="a.txt"
Content-Type: text/plain

one
two
three
----------------------------235004

```

I have tried setting the Content-Type header to

application/x-www-form-urlencoded
or
multipart/form-data

But no luck