Save input file contents to a variable
<p><strong>Is it possible to set a variable for an input file element value, so it could further be assigned to another input?</strong><br>
This is, how it works with text inputs:  </p>

<pre><code>var tempValue = document.getElementById('text').value;  
</code></pre>