title: cakePHP File Download was not found or not readable
body: <p>I've been struggling now for an hour trying to fix this. I used this to download file from <code>app/uploads/</code> directory. It says the directory not found or not readable. Yet i checked it and it was there also the file using <code>$file['File']['filename']</code>. I want to know what I am missing here.?</p>
  
  <pre><code>$file = $this-&gt;File-&gt;findById($id);
  
  $extension = pathinfo($file['File']['filename'],PATHINFO_EXTENSION);
  
  $this-&gt;response-&gt;file('uploads'.DS.$file['File']['filename'], array(
      'download' =&gt; true,
      'id'       =&gt; $file['File']['filename'],
      'name'     =&gt; $file['File']['filename']
  ));
  $this-&gt;response-&gt;type($extension);
  return $this-&gt;response;
  </code></pre>