title: ajax form submit not working on iPhone Safari
body: <p>I have created a form allowing the user to select a photo.  Upon selection, the form is submitted automatically via ajax (as opposed to having a standard submit button).  It works fine in all browsers, but it does not work on the mobile version of safari.</p>
  
  <p>My HTML:</p>
  
  <pre><code>&lt;form id="myForm" action="php/upload.php" method="post"&gt;
  &lt;input name="uploadedfile" type="file" id="uploadPhotoButton"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My javascript:</p>
  
  <pre><code>$(':file').change(function(){
      var formData = new FormData($('form')[0]);
      $.ajax({
          url: 'php/upload.php',  //server script to process data
          type: 'POST',
          success: uploadComplete,
          // Form data
          data: formData,
          //Options to tell JQuery not to process data or worry about content-type
          cache: false,
          contentType: false,
          processData: false
      });
  });
  </code></pre>
  
  <p>On iPhone Safari, the change handler function is called fine, but the ajax call fails.</p>
  
  <p>Any suggestions?</p>