below is my simple code using HTML 5 multiple file upload. All i need is to grab all the file names not the paths below is simple javascript code
function getFileNames()
{
var path = $('#files').val();
console.log(' path = ' + path);
}
and html form is as
<form action='server.php' method='post' enctype='multipart/form-data' target="iframe">
<input id="files" name='files[]' type='file' multiple>
<input type='button' onclick="getFileNames()">
</form>
when i press the button the console output is as
path = Chrysanthemum.jpg
which is the first name of the file and i want the remaining names , any suggestions , comments are appreciated. thanks.