image upload and preview w3 schools 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>