title: How can I send input file without form tag?
body: <p>I am trying to send file to server with HTML and JavaScript. The scenario like below :</p>
  
  <ol>
  <li>user clicks some button and it shows a div pop up.</li>
  <li>user inputs file with <code>&lt;input type='file'&gt;</code>. </li>
  <li>user presses button. </li>
  <li>send data to server and div pop up closes.</li>
  </ol>
  
  <p>Note that all of these actions happen in one page. Only div pop up can be open and closed.</p>
  
  <p>At first, I was trying to send data with a <code>&lt;form&gt;</code> tag, and it works fine. The problem is when I submit the form it changes the page.</p>
  
  <p>So what I am trying to do is sending file data without using a <code>form</code> tag. I have searched web, it looks somehow impossible. Is there any alternative way to send file data in div pop up?</p>
  
  <p>Thanks :D</p>