title: How to save the file input data to a variable in javascript
body: <p>İ tried to do it simply by assign the files of the input into a variable:</p>
  
  <pre><code> var files = document.getElementById("upload").files;
  </code></pre>
  
  <p>but there seems to be a connection created with this assign so every time the input changes the variable changes too. 
  so how can I do that without this connection?</p>