An easy way to get the file names of an input form field:
(function($) {
var files = $('#myInputFile')[0].files,
items = [];
for (var i = 0; i < files.length; i++) {
items.push(files[i].name);
}
// Getting file names in JSON array format
JSON.stringify(items);
})(jQuery);