Answers for "input type file get file data"

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

Browse Popular Code Answers by Language