<input type="file" onchange="getFiles(event)" /> <script type="text/javascript"> function getFiles(event) { console.log(event.target.files) } </script>