title: How to upload image with optional data in multer?
body: <p><strong>File object sending from frontend using react and formData
  I have manually made the file object looks like...</strong></p>
  <p><em>Output of files</em>
  <a href="https://i.stack.imgur.com/gp61r.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gp61r.jpg" alt="enter image description here" /></a></p>
  <p><strong>After uploading a file i am getting the object in multer and express-upload</strong></p>
  <blockquote>
  <p>console.log(req.files.productImages)</p>
  </blockquote>
  <pre><code>[{
          &quot;name&quot;: &quot;galaxy-1.jpeg&quot;,
          &quot;data&quot;: {
              &quot;$binary&quot;: &quot;/9j/4AAQSkZJRgABAQAAAQABAAD/2FasgasadagzxvADFCaBGRRXSADa0&quot;
          },
          &quot;size&quot;: 2895,
          &quot;encoding&quot;: &quot;7bit&quot;,
          &quot;tempFilePath&quot;: &quot;&quot;,
          &quot;truncated&quot;: false,
          &quot;mimetype&quot;: &quot;image/jpeg&quot;,
          &quot;md5&quot;: &quot;b7192406a75b765dd0582daa4807ca71&quot;
  }]
  </code></pre>
  <p><strong>I want to get file object with label: value.</strong></p>
  <p>example:</p>
  <pre><code>[{
          &quot;label&quot;: &quot;oxygen blue&quot;,
          &quot;name&quot;: &quot;galaxy-1.jpeg&quot;,
          &quot;data&quot;: {
              &quot;$binary&quot;: &quot;/9j/4AAQSkZJRgABAQAAAQABAAD/2FasgasadagzxvADFCaBGRRXSADa0&quot;
          },
          &quot;size&quot;: 2895,
          &quot;encoding&quot;: &quot;7bit&quot;,
          &quot;tempFilePath&quot;: &quot;&quot;,
          &quot;truncated&quot;: false,
          &quot;mimetype&quot;: &quot;image/jpeg&quot;,
          &quot;md5&quot;: &quot;b7192406a75b765dd0582daa4807ca71&quot;
  }]
  </code></pre>
  <p>Please help me to achieve this thing.</p>