title: Uploadify is not working
body: <p>I am using uploadify to upload multiple files on my website, but it is not working properly. I have fix various things in it but it is not working properly. issue is that when i upload the file it will show me the loading bar and when it completes it disappear but when i check the destination the file is not present in it. Please help me. My code is given below:</p>
  
  <p>index.php</p>
  
  <pre><code>&lt;form&gt;
          &lt;div id="queue"&gt;&lt;/div&gt;
          &lt;input id="file_upload" name="file_upload" type="file" multiple="true"&gt;
      &lt;/form&gt;
  
          &lt;script type="text/javascript"&gt;
              &lt;?php $timestamp = time();?&gt;
              $(function() {
                  $('#file_upload').uploadify({
                      'formData'     : {
                          'timestamp' : '&lt;?php echo $timestamp;?&gt;',
                          'token'     : '&lt;?php echo md5('unique_salt' . $timestamp);?&gt;'
                      },
                      'swf'    : 'uploadify.swf',
                      'uploader' : 'uploadify.php'
  
                  });
              });
          &lt;/script&gt;
  </code></pre>
  
  <p>uploadify.php</p>
  
  <pre><code>    &lt;?php
  
  
      // Define a destination
      $targetFolder = 'uploads/'; // Relative to the root
  
      $verifyToken = md5('unique_salt' . $_POST['timestamp']);
  
      if (!empty($_FILES) &amp;&amp; $_POST['token'] == $verifyToken) {
          $tempFile = $_FILES['Filedata']['tmp_name'];
          $targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder;
          $targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name'];
  
          // Validate the file type
          $fileTypes = array('jpg','jpeg','gif','png'); // File extensions
          $fileParts = pathinfo($_FILES['Filedata']['name']);
  
          if (in_array($fileParts['extension'],$fileTypes)) {
              move_uploaded_file($tempFile,$targetFile);
              echo '1';
          } else {
              echo 'Invalid file type.';
          }
      }
      ?&gt; 
  </code></pre>