title: File upload not working on certain server
body: <p>I have website which uploads files to api/uploads - it works locally and on my heroku server. But it fails on the production server I have been given.</p>
  
  <p>the site sits in the folder - public/</p>
  
  <p>I have ran the following command:</p>
  
  <pre><code>chmod -Rf 777 public/api/uploads
  </code></pre>
  
  <p>and added the following to my htaccess file:</p>
  
  <pre><code>php_value upload_max_filesize 10M
  php_value post_max_size 20M
  php_value memory_limit 32M
  </code></pre>
  
  <p>Non of this works - is there anything else I can try?</p>
  
  <p>EDIT:</p>
  
  <p>Some debugging gets the following:</p>
  
  <p>uploading a file: failed to open stream: Permission denied</p>
  
  <p>Looking at phpinfo() file_uploads is set to 'On' - how can permission be denied when uploads is on?</p>