title: How to pass a field with a each file in ReactJs
body: <p>I want this scenario. For example, the user upload a file for a user
  and for a product then I send the files to nodeJs to be handled.</p>
  <p>When I send the data from react, it is like this</p>
  <pre><code>files.map((data) =&gt; {
          formData.append('documents', data.file);
  });
  </code></pre>
  <p>my question is how to send the file with a type property for example to be either user or a product.</p>
  <p>If I add a property to data.file I'm not receiving it in req.files in NodeJS
  Can someone help me solve this issue</p>