<script>   var file=document.getElementById('IdOfFileInputControl').value   alert(file) </script>

Read more of this post