title: jQuery, Select Input FILE and also set it to another INPUT
body: <p>The website has 2 input fields, I only select 1 field and the other one is invisible. Now I want to change the .val() of the invisible one to the .val() of the selected one, so both fields upload the same file. How does that work?</p>
  
  <p>If I do this:</p>
  
  <pre><code>    $('#input_file').change(function() {
          var fileSelect = $(this).val();
          $('#hidden_input_file"]').val(fileSelect);
          console.log(fileSelect);
      });
  </code></pre>
  
  <p>I get this error: 
  Uncaught InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.</p>