Answers for "input type file file files javascript upload"

9

file input file types

<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
Posted by: Guest on May-05-2020
0

js get file from input

<input type="file" onchange="getFiles(event)" />
<script type="text/javascript">
	function getFiles(event) {
    	console.log(event.target.files)
    }
</script>
Posted by: Guest on February-21-2022

Code answers related to "input type file file files javascript upload"

Browse Popular Code Answers by Language