Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get file from input

<input type="file" onchange="getFiles(event)" />
<script type="text/javascript">
	function getFiles(event) {
    	console.log(event.target.files)
    }
</script>
 
PREVIOUS NEXT
Tagged: #js #file #input
ADD COMMENT
Topic
Name
6+5 =