title: Getting error: cannot read property 'path' of undefined
body: <p>I have a requirement to pass <code>List&lt;Map&lt;String, String&gt;&gt;</code> as a parameter for REST GET API. I need to know how this can be passed from Postman or similar tool.</p>
  <p>I tried to set it as a BODY for a GET API, it is giving me errors.</p>
  <pre class="lang-js prettyprint-override"><code>var http = require('http');
  var formidable = require('formidable');
  var fs = require('fs');
  
  http.createServer(function(req, res) {
    if (req.url == '/fileupload') {
      var form = new formidable.IncomingForm();
      form.parse(req, function(err, fields, files) {
        var oldpath = files.filetoupload.path;
        var newpath = 'D:/nodejs/images/' + files.filetoupload.name;
        fs.rename(oldpath, newpath, function(err) {
          if (err) throw err;
          res.write('File uploaded and moved!');
          res.end();
        });
      });
    } else {
      res.writeHead(200, {
        'Content-Type': 'text/html'
      });
      res.write('&lt;form action=&quot;fileupload&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;');
      res.write('&lt;input type=&quot;file&quot; name=&quot;filetoupload&quot;&gt;&lt;br&gt;');
      res.write('&lt;input type=&quot;submit&quot;&gt;');
      res.write('&lt;/form&gt;');
      return res.end();
    }
  }).listen(3000);
  </code></pre>