javascript to write the name of the file uploaded in input typr file code example
Example: upload button in html
<form action="/action_page.php">
<input type="file" id="myFile"
name="filename">
<input type="submit">
</form>
<form action="/action_page.php">
<input type="file" id="myFile"
name="filename">
<input type="submit">
</form>