title: Sails.js downloading file
body: <p>I'm beginner in <code>sails.js</code> and I need to add some logic to existing server.
  I need to retrieve image from shared network, so I added <code>ImageController.js</code> and action in it:</p>
  
  <pre><code>module.exports = {
      download: function(req, res) {
          var run = req.param('run');
          var test = req.param('test');
          var file = req.param('file');
          var path = util.format('\\\\tch-smain\\Share\\AutoTest\\Screenshots\\%s\\%s\\%s.jpeg', run, test, file);
          fileAdapter.read(path)
              .on('error', function (err){
                  return res.serverError(err);
              })
              .pipe(res);
      }
  };
  </code></pre>
  
  <p>Then I registered route in <code>config\routes.js</code>:</p>
  
  <pre><code>'/img': 'ImageController.download'
  </code></pre>
  
  <p>But when I trying to execute <code>GET /img?run=a&amp;test=b&amp;file=c</code> I get 500 error <strong>Internal Server Error. Something isn't right here</strong>.
  But file on <code>\\tch-smain\Share\AutoTest\Screenshots\a\b\c.jpeg</code> exists</p>