title: Get full path of file in node.js with module express-busboy
body: <p>I am using node.js and express-busboy to upload a file from a file input form to the server. The uploaded file will have a path of something like <code>root/useruploaded/formattached/somerandomid(e.g. 9w470066-68b4-549e-9607-1987c72768ac)/myFileInputName/uploaded.file</code></p>
  
  <p>My express-busboy settings look like this:</p>
  
  <pre><code>bb.extend(app, {
    upload: true,
    path: path.join(__dirname, '/useruploaded/formattached'),
    allowedPath: /^\/contact$/ // &lt;-- My POST
  });
  </code></pre>
  
  <p>Then when I access the file by doing <code>req.files.contactFileUpload.filename</code> I can successfully get the name of the uploaded file.</p>
  
  <p>However, when I go to attach this file to my email, I need the path, which I can't figure out how to get because of the random id folder that busboy puts the user uploaded content into. Otherwise I would be able to do something like</p>
  
  <pre><code>path = path.join(__dirname, '/useruploaded/formattached', req.files.contactFileUpload.filename);
  </code></pre>
  
  <p>To get the path. </p>
  
  <p>My question is how can I</p>
  
  <p>Stop busboy from putting my files in a random id folder?</p>
  
  <p><strong>OR</strong></p>
  
  <p>Get the full path of the file?</p>
  
  <p>I have tried to do <code>req.files.contactFileUpload.path</code>, but this returns undefined.</p>
  
  <p>Thank you in advance!</p>