how to make a javascript add a file that you have uploaded by <input type="file"> in hyml code example
Example 1: input file define type
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
Example 2: upload button in html
<form action="/action_page.php">
<input type="file" id="myFile"
name="filename">
<input type="submit">
</form>