title: Send a file as multipart through XMLHttpRequest
body: <p>Can I send a file as multipart by <a href="https://en.wikipedia.org/wiki/XMLHttpRequest" rel="nofollow noreferrer">XMLHttpRequest</a> to a servlet?</p>
  <p>I am making a form and submitting it as multipart, but somehow I am not getting a response for successfully uploading it. I do not want the page to be refreshed, so it has to take place by Ajax.</p>