title: Node.js - how to receive and parse multipart/formData as array of objects with fields and files?
body: <p>I want to do the implementation to receive multipart/formData in my Node.js server application. For this kind of request, I should be able to receive array of fields for same "key" in form and array of files on same "key" in multipart but at different indexes.</p>
  
  <p>For example: 
  My formData (fields) should looks like this (key:value) at client side application:</p>
  
  <pre><code>data[0].id : 1
  data[0].name : Data 1
  data[1].id : 2
  data[1].name : Data 2
  </code></pre>
  
  <p>My multipart form (files) should looks like this (key:value) at client side application:</p>
  
  <pre><code>data[0].images[0] : "/file1_path.jpg"
  data[0].images[1] : "/file2_path.jpg"
  data[1].images[0] : "/file3_path.jpg"
  data[1].images[1] : "/file4_path.jpg"
  </code></pre>
  
  <p>This request is basically to upload all data of an array of objects from client application and object will contain text datas and images array. I can receive this data and able to parse data and files.</p>
  
  <p>For UrlEncoded-formData, I'm using 'body-parser' module with 'express' module.</p>
  
  <p>Is there any node module to achieve above requirements?</p>
  
  <p>If I want to hit this request via Postman then it will look like this:
  <a href="https://i.stack.imgur.com/LKVLZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LKVLZ.png" alt="Request from Postman"></a></p>