title: Corrupt files when uploading from Node
body: <p>I'm converting powerpoint files to individual images, and the images that are produced end up corrupted when I upload from Node.</p>
  
  <p>The npm modules I'm using are <a href="https://github.com/mikeal/request" rel="nofollow noreferrer">request</a> and <a href="https://github.com/felixge/node-form-data" rel="nofollow noreferrer">node-form-data</a>.</p>
  
  <p>I upload a file from my Node app like this:</p>
  
  <pre><code>var request = require('request');
  var FormData = require('form-data');
  
  function processPresentation(fileName,fileLoc,userId,customerId){
      var data = new FormData();
      data.append('my_file',fs.createReadStream(fileLoc));
      var options = {
          url: config.getConverter()+"?tenant="+customerId+"&amp;author="+userId+"&amp;name="+fileName+"&amp;ext=ppt",
          method: 'POST',
          form:data,
          headers:{'x-auth-token':token,'Content-Type':'application/vnd.openxmlformats-officedocument.presentationml.presentation'}
      };
  
      request.post(options,function(error,response,body){
          console.log(body);
          if(error){
              console.log('error',error);
          }
          if(!response){
  
          }
          if(response.statusCode === 200){
              addPresentation(JSON.parse(body),userId);
          }
      });
  }
  </code></pre>
  
  <p>And it goes through my conversion process, I get a file like this as output:</p>
  
  <p><img src="https://i.stack.imgur.com/NQF1m.png" alt="enter image description here"></p>
  
  <p>Here's what all this actually says, if you open the powerpoint file and look at the text:
  <a href="http://pastebin.com/Dbh0JPKA" rel="nofollow noreferrer">http://pastebin.com/Dbh0JPKA</a></p>
  
  <p>When I use Postman and upload the same file like this:</p>
  
  <pre><code>POST  HTTP/1.1
  Host: xxxx.xxxxxxxxxx.net?name=00a94ec9-8f70-4279-8972-f49935cda295&amp;ext=ppt&amp;tenant=543840f80019abda4937a9e2&amp;author=543bef549f8d54a53a02f6d9
  Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation
  x-auth-token: 772a5c0c023a447f68a9ac4fb2bb4bd39bafeb16b753df2222ffc835750cbbe6a4ef9ee82fab0902f39bc26851016a873d44c91a64f67de5e10044ef0787cebe
  Cache-Control: no-cache
  Postman-Token: 74aff430-f6b8-c7cd-d477-b9cc35897bb7
  
  undefined
  </code></pre>
  
  <p>I get output like this:</p>
  
  <p><img src="https://i.stack.imgur.com/pJfuR.png" alt="enter image description here"></p>
  
  <p>Which is what I want.</p>