title: How to reroute form data from client to some microservice via Node.js?
body: <p>I have created an intermediate backend on Node.js to talk to multiple microservices my app depends on. All is good so far. The issue I'm unable to resolve is with file handling. My client is sending files to the Node layer in the form of Formdata and I want to reroute the same form data to some particular microservice which expects the file in the form of form data as well. I'm using <a href="https://github.com/richardgirges/express-fileupload" rel="nofollow noreferrer">express-fileupload</a> middleware to extract the file from the <code>req</code> object but it gives me the file data with the following property: </p>
  
  <pre><code>req.files.file = {
    data:Buffer(47643) [37, 80, 68, …]
    encoding:"7bit"
    md5:() =&gt; …
    mimetype: "application/pdf"
    mv: function (filePath, callback) { … }
    name:"somefile.pdf"
    truncated:false
  }
  </code></pre>
  
  <p><strong>How to create the same form data that client has send outta this object?</strong></p>