title: How to submit file upload form with ajax?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2751795/ajax-file-upload">Ajax file upload</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible to write an ajax request with JQuery that "submits" a form with a file field? I want to do it because in this way i can make the user upload a file without leaving the current page.</p>
  
  <p>How should i write the $.ajax() call? and in particular how should i set into the ajax call the file field?</p>
  
  <p>EDIT: I'd like to use only core JQuery functions, without plugins.</p>
  
  <p>Thanks.</p>