title: Passing received `.csv` file from Node js to some other server
body: <p>I am trying to send a <code>.csv</code> file from node js to another server</p>
  
  <pre><code>uploadCSVData = async(
      req: Request,
      res: Response,
      next: any
  ):Promise&lt;any&gt; =&gt;{
      const csvForm = new FormData();
      csvForm.append('upload', fs.createReadStream(req.file.path));
      console.log(csvForm);
      const options = {
           upload: csvForm,
           headers: {
                      authorization: req.headers.svctoken,
                      'Content-type': 'multipart/form-data'
                  },
           json: true
      };
      const response = await this.postSvc.exec(
                  ['https://come/svc', `someAPI?id=${req.body.acntID}`]
                  .join('/'),
                  options
          );
  
  return res.status(200).json(response.body);
  }
  </code></pre>
  
  <p>I can see error as :</p>
  
  <blockquote>
    <p>"no multipart boundary param in Content-Type"</p>
  </blockquote>
  
  <p>How to send this <code>req.file</code> to another server which expects as <code>'multipart/form-data'</code></p>
  
  <p><strong>I dont think its a good idea to add <code>boundary</code> explicitly when I am using <code>form-data</code></strong></p>
  
  <p>The <code>csvForm</code> is below in console log:</p>
  
  <pre><code>FormData {
    _overheadLength: 167,
    _valueLength: 0,
    _valuesToMeasure:
     [ ReadStream {
         _readableState: [ReadableState],
         readable: true,
         _events: [Object],
         _eventsCount: 3,
         _maxListeners: undefined,
         path: 'uploads\\1533537127411_sample1.csv',
         fd: null,
         flags: 'r',
         mode: 438,
         start: undefined,
         end: Infinity,
         autoClose: true,
         pos: undefined,
         bytesRead: 0,
         closed: false,
         emit: [Function] } ],
    writable: false,
    readable: true,
    dataSize: 0,
    maxDataSize: 2097152,
    pauseStreams: true,
    _released: false,
    _streams:
     [ '----------------------------481765298048352594095608\r\nContent-Disposition: form-data; name="upload"; filename="1533537127411_sample1.csv"\r\nContent-Type: text/csv\r\n\r\n',
       DelayedStream {
         source: [ReadStream],
         dataSize: 0,
         maxDataSize: Infinity,
         pauseStream: true,
         _maxDataSizeExceeded: false,
         _released: false,
         _bufferedEvents: [Array],
         _events: [Object],
         _eventsCount: 1 },
       [Function: bound ] ],
    _currentStream: null,
    _boundary: '--------------------------481765298048352594095608' }
  </code></pre>
  
  <h3>Another approach</h3>
  
  <p>I tried passing file directly rather than creating FormData() like:</p>
  
  <pre><code>        const options = {
                  upload: req.file,
                  headers: {
                      authorization: req.headers.svctoken,
                      'Content-type': 'multipart/form-data'
                  },
                  json: true
          };
  </code></pre>
  
  <p>but the error is still there</p>