title: Uploading a photo from Android with Phonegap
body: <p>I am following this <a href="http://zacvineyard.com/blog/2011/03/25/upload-a-file-to-a-remote-server-with-phonegap/comment-page-2/#comment-3089" rel="nofollow">guide</a> and have gotten almost everything to work except when I click to submit a photo it just spits an alert back at me with my server code.</p>
  
  <p>This is my code in php:</p>
  
  <pre><code>print_r($_FILES);
  $new_image_name = "namethisimage.jpg";
  move_uploaded_file($_FILES["file"]["tmp_name"], "/public_html/photos".$new_image_name);
  </code></pre>
  
  <p>Is the directory correct or should it be phrased some other way?</p>