When I run the following command using cURL.exe to upload a file, I have no issues:
Curl.exe -X POST -H "X-API-TOKEN: token here" -F file=@"E:\