title: File upload without page refresh
body: <p>I have a html page where I upload a file using form input.
  My code is </p>
  
  <pre><code>  &lt;form action = "UploadFile.jsp" method = "post" target="my-iframe"
       enctype = "multipart/form-data"&gt;
       &lt;input type = "file" name = "file" size = "50" /&gt;
       &lt;br /&gt;
       &lt;input type = "submit" value = "Upload File" /&gt;
    &lt;/form&gt;
    &lt;iframe name="my-iframe" src="UploadFile.jsp" style="display:none;"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Now this form works good without any page refresh. But, I need to know if there are any other possible methods of file upload without using an iframe where there is no page refresh.
  Is there any method to do this with ajax request and javascript?</p>