title: dropzone.js not moving file to upload folder
body: <p>i work with the dropzone.js, <code>upload</code> plugin and <code>PHP</code>. I am trying to use <code>dropzone</code> show success Icon and print image preview, but it is not uploading my images to the upload directory. how can I fix this?</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div class="dropzone dropzone-previews" id="my-awesome-dropzone"&gt;
    &lt;form action="&lt;?PHP echo SITE.'/controller/'?&gt;upload.php"&gt;&lt;/form&gt;
    &lt;div class="fallback"&gt;
      &lt;input name="file" type="file" multiple /&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
      Dropzone.options.myAwesomeDropzone = { // The camelized version of the ID of the form element
      // The configuration we've talked about above
      url: '&lt;?PHP echo SITE.'/controller/'?&gt;upload.php',
      previewsContainer: ".dropzone-previews",
      uploadMultiple: true,
      parallelUploads: 100,
      maxFiles: 100
    }
  
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
  $ds          = DIRECTORY_SEPARATOR;  //1
  
  $storeFolder = '../../uploads/news/';   //2
  
  if (!empty($_FILES)) {
  
      $tempFile = $_FILES['file']['tmp_name'];          //3             
  
      $targetPath = dirname( __FILE__ ) . $ds. $storeFolder . $ds;  //4
  
      $targetFile =  $targetPath. $_FILES['file']['name'];  //5
  
      move_uploaded_file($tempFile,$targetFile); //6
  
  }
  ?&gt; 
  </code></pre>