title: Uploading binary file using axios?
body: <p>I am trying to upload a zip file from my server-side application (Express.js) to a third-party API as a binary (not a <code>multipart/form-data</code> but as the equivalent of body binary in Postman), but I get the following error from <code>axios</code>:</p>
  <pre><code>Error: ENOENT: no such file or directory, open '/Users/Name/[object Object]']
  </code></pre>
  <p>My current situation:</p>
  <pre><code>form = new FormData();
  form.append('file', fs.createReadStream(__dirname + '/' + req.files), req.files.name);
  axios.post(url, form, {
      headers: {
          'Content-Type': `multipart/form-data; boundary=${form._boundary}`
      }
  });
  </code></pre>
  <p><code>req.files</code> output:</p>
  <pre><code>file: {
      name: 'myfile.zip',
      data: &lt;Buffer 50 4b 03 04 0a 00 00 00 00 00 66 6c 75 52 00 00 00 00 00 00 00 00 00 00 00 00 1f 00 09 00 64 6f 63 6b 65 72 2d 6d 69 6e 65 63 72 61 66 74 2d 73 65 72 ... 139643 more bytes&gt;,
      size: 139693,
      encoding: '7bit',
      tempFilePath: '',
      truncated: false,
      mimetype: 'application/zip',
      md5: 'e2b648ad295922c6d8d3ef1bc8ce1309',
      mv: [Function: mv]
  }
  </code></pre>