title: upload image file from mobile device
body: <p>Simple upload script (to allow staff members to change their profile pic), works fine from a PC, but when I try and upload a photo from an iPhone, the page just halts, like it's trying to load, and nothing happens.</p>
  
  <p>This is my entire test PHP file:</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['submitNewImage'])) {
      echo 'it works, and the filename is ' . $_FILES['uploadedFile']['name'];    
  }
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;form action="test.php" method="post" enctype="multipart/form-data"&gt;
  &lt;input type="file" accept="image/*" capture name="uploadedFile" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;input type="submit" name="submitNewImage" value="Upload" /&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Again, this works fine from a PC, but when I touch "Upload" from an iPhone, it just hangs.  If I remove the name="uploadedFile", the page executes, but of course there is no file there.  How can I get this to recognize an image from an iPhone?  </p>