title: Uploadify - files not showing up
body: <p>I'm trying to use Uploadify (a jQuery plugin) with my CakePHP app.  Locally (WampServer), it works great, but when I try it on my live server (Dreamhost), the files don't show up.  I've properly chmod'ed the folders, checked the paths, etc, and I can't make any sense of why it isn't working.  Here's upload.php:</p>
  
  <pre><code>if (!empty($_FILES)) {
      $tempFile = $_FILES['Filedata']['tmp_name'];
      $targetPath = $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/posts/temp/";
      $targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];
  
      $targetFile = str_replace(".", "_" . mt_rand(10000000,99999999) . ".", $targetFile);
  
      move_uploaded_file($tempFile,$targetFile);
  }
  echo "1";
  </code></pre>
  
  <p>This script is definitely being run, but I've looked in the specified folder (and all over the filesystem), and the uploaded file(s) just aren't showing up!  It's driving me crazy--hopefully someone has the answer to this.  Please let me know if I should post any more code, and I will.</p>