title: Fileupload Makes application Stops
body: <p>Here the code which i have used in my corodova 2.9.0 based application in Andorid .When i try to upload the photo.The Application gets crashed.</p>
  
  <pre><code>function uploadPhoto(imageURI)
  {
   Ext.Viewport.mask({ xtype: 'loadmask' });               
   var milliseconds = js_yyyy_mm_dd_hh_mm_ss();
   var options = new FileUploadOptions();
   options.fileKey="file";
   options.chunkedMode=false;         options.fileName=App.gvars.userid+milliseconds+imageURI.substr(imageURI.lastIndexOf('/')+1);
   renamedfile=options.fileName;
   options.mimeType="image/jpeg";
   var params = new Object();
   options.params = params;
   var ft = new FileTransfer();
   var url = "http://wish.brammies.com/itemimage/upload.php/";
   ft.upload(imageURI, url, win, fail, options,true);
   }
   function win(r)
   {
    console.log("Code = " + r.responseCode);
    console.log("Response = " + r.response);
    console.log("Sent = " + r.bytesSent);
   }
   function fail(error)
    {
     console.log("An error has occurred: Code = " + error.code);
     console.log("upload error source " + error.source);
     console.log("upload error target " + error.target);
   }
  </code></pre>
  
  <p><strong>EDIT</strong>
  PHP code</p>
  
  <pre><code>&lt;?php 
  $folder = “/itemimage/”;
  if (is_uploaded_file($_FILES['file']['tmp_name']))  {  
  if (move_uploaded_file($_FILES['file']['tmp_name'], $folder.$_FILES['file']['name'])) {
       echo "File uploaded";
  } else {
       echo "File not moved to destination folder. Check permissions";
  };
  } else {
   echo "File is not uploaded.";
  };
  //you get the following information for each file:
  echo $_FILES['file']['name']."&lt;/br&gt;"; //represents the name of file uploaded
  echo $_FILES['file']['size']."&lt;/br&gt;";   //represents the size of file uploaded
  echo $_FILES['file']['type']."&lt;/br&gt;"; //represents the mime type of file uploaded
  echo $_FILES['file']['tmp_name']."&lt;/br&gt;";
  echo "fdggdr";
  ?&gt;
  </code></pre>
  
  <p>Android running version <strong>4.1.4</strong></p>
  
  <p>Please help me to solve the issue.</p>