title: Sails.js : post text input and a file in the same time
body: <p>I want to send a file and a hidden input text in a form.</p>
  
  <pre><code>&lt;form method="POST" action="/api/import_xlsx_data" enctype="multipart/form-data"&gt;
  &lt;input type="file" name="xlsx_file_to_import" accept=".xlsx" required&gt;
  &lt;input id="url" type="HIDDEN" name="url" value="url-value"&gt;
  &lt;input type="submit" value="Envoyer"&gt;
  </code></pre>
  
  <p></p>
  
  <p>In my controller request.body is equal to {}.<br>
  When I remove enctype="multipart/form-data" it works for my text but not for my file. </p>
  
  <p>To upload my file :</p>
  
  <pre><code>uploadFile.upload({saveAs : fileName, dirname : directoryName},function onUploadComplete(err, files) { ...............});
  </code></pre>
  
  <p>My controller :</p>
  
  <pre><code> importXLS: function (req, res) {
      var uploadFile = req.file('xlsx_file_to_import');
      //console.log(req.params()); -&gt; send error params is not a function
      console.log(req.body); // send me {}
      console.log(req.param('url')); //send me undefined
  
  
  ...... }
  </code></pre>
  
  <p>More code on pastbin :
  My view : <a href="http://pastebin.com/fejXX31k" rel="nofollow">view</a><br>
  My controller : <a href="http://pastebin.com/W4deBqFj" rel="nofollow">controller</a></p>