Is there a way to use JavaScript to set the file name and contents of a form's file uploads?
For example, suppose we have two file input elements.
<input type="file">
<input type="file">
Can JavaScript copy the content from one form element to the other?