I'm using a regular button that onclick activates the type=file button and works properly, as in that it successfully opens the choose a file menu and then selects a file, but it doesnt say the name of the file anywhere. Is there a way to do this?
<div class="div-table" align="center">
<form method="post" enctype="multipart/form-data" action="">
<div class="div-table-row" align="center">
<div class="div-table-col" align="right"> Upload Doc File: </div>
<div class="div-table-col" align="left">
<input type="button" id="my-button" value="Select Doc File" class="button" >
<input type="file" name="file" id="file" src="#" onchange="getFilePath())">
</div>
<script>
$('#my-button').click(function(){
$('#file').click();
});
</script>
</div>
Id just like to pop up and show the file name next to the button or something so the user knows that the files been selected. Thanks