title: FormData ajax upload on IE8 -> alternatives and how it works
body: <p>I'm tyring to upload a picture with ajax, so I'm using FormData, but it's not working with IE8. I've looked about it and it's not possible to use FormData with IE8, but I've found nothing I've been able to use instead in order to make it work on IE8 and other browser. Could someone tell me what to do please, and how to do it ?</p>
  
  <p>The form I'm trying to submit</p>
  
  <pre><code>&lt;form id="addImgForm" name="addImgForm" method="post" action="#URL(Action('ChiliTest-ImageUpload'))#" enctype="multipart/form-data"&gt;
      &lt;input id="newImage" type="file" name="newImage"&gt;
      &lt;input type="hidden" name="MAX_FILE_SIZE" value="12345"&gt;
      &lt;span id="addImage" class="button-addImage" type="submit"&gt;&lt;isTradConstant keyword="l_customizationsChiliEditor_AddImageButtonTitle" template="CustomizationsChiliEditor" init="Ajouter"&gt;&lt;/span&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Called on addImgForm submit</p>
  
  <pre><code>$.ajax({ 
      url: myUrl,
      type: "POST",
      data: new FormData($(this).parent()[0]),
      contentType : false,
      async: false,
      processData: false,
      cache: false,
      success: function(data) {
          //do something
      }
  }); 
  return false;
  </code></pre>