title: how to store the path of uploaded file into a variable using node.js
body: <p>this is my jade file:</p>
  
  <pre><code>    table(border='0' align='center')
        thead
         tr
          th
           form(action='/abc' method='POST' enctype='multipart/form-data' )
            input(type='file' name='file')
            input(type="submit" class="btn btn-primary btn-block btn-large  
            value="upload"
  </code></pre>
  
  <p>now when i upload the file, the path of the uploaded file sholud be stored in a variable for further use.
  this is what i tried:</p>
  
  <pre><code>    app.post('/abc', function(req, res) {
      var v = req.body.file;
      console.log(v);
  </code></pre>
  
  <p>when i tried to print the variable 'v' to check whether it is stored, it is printing undefined.
  please let me know where i was wrong.</p>