You can dynamically generate <tr>
element to represent row in your table. For example:
function AddRow(int serialNumber, string fileName)
{
var table = document.getElementById('tableId');
table.innerHtml += "<tr><td>" + serialNumber + "</td><td>" + fileName+ "</td></tr>
}
Also the truth is that you cannot intercept full file path in javascript. You can only get a filename and put it in your table.
You can fire it as an event on the onchange
event of the input:
<input type="file" onchange="javascript:AddRow(serialNumber, this.value); serialNumber++;">
Also you have to declare your serial number property somewhere on the top of your file f.e.
<script type="text/javascript">var serialNumber = 0;</script>