title: How to POST JSON + pdf file with Unirest in NodeJS
body: <p>In NodeJS I am trying to POST JSON data to the server along with a file using the following code:</p>
  
  <pre><code>unirest.post(url)
  .headers(headers)
  .send(data)
  .attach('file', file)
  .end(function (response) {
      var statusCode = response.status;
      if (statusCode != 200) {
          console.log("Result: ", response.error);
      }
  });
  </code></pre>
  
  <p>However, on the server, I am only receiving the file, and not the JSON object from <code>.send(data)</code>. I see there is a <code>.multipart()</code> function I can use, but I'm not sure how best to use this?</p>