Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
I am doing a Asp.Net MVC based multiple file upload control. In that I can able to upload the files to the specific destination. But, when I select more than one file, the browser is showing the count as 3 files or 4 files. Instead of that I need to display the file names. Is there any way to achieve that??
Posted
Updated 8-May-13 1:35am
v2

1 solution

Use these,

XML
<input type="text" id="txtfile" />
<input id="file" type="file" name="file" style="display: none;" />
<input id="browseButton" type="button" value="Browse"/>



In Javascript,

JavaScript
$('#browseButton').click(function () {
    $('#file').trigger('click');
});



You may access a file path using txtfile.val()
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900