title: Fetching multiple image in Phonegap FileTransfer
body: <p>I am sending multiple images to server using Phonegap FileTransfer.
  Images are getting successfully delivered on server side as I get it in logcat.</p>
  
  <p>Now I don't know how to fetch images on sever side?
  I tried following code: </p>
  
  <pre><code>&lt;?php
  print_r($_FILES);
  
  //$new_image_name = "namethisimag1.jpg";
  
  $new_image_name = array("red.jpg", "green.jpg", "blue.jpg"); 
  foreach ($new_image_name as $key =&gt; $item) {
  
  $destination = $_SERVER['DOCUMENT_ROOT'] . "/AppData/uploads/".$item;
  move_uploaded_file($_FILES["file"]["tmp_name"], $destination);
  } 
  ?&gt;
  </code></pre>
  
  <p>Only 1 image red.jpg is getting uploaded. Help me with foreach loop.</p>
  
  <p>on Every file transfer this page is called on server side. </p>