You can Add this in your script. This should work when you try to select multiple files on upload, for example, in OnChange Functionality.
$("document").ready(function(){
$("#File2").change(function() {
var files = $(this)[0].files;
for (var i = 0; i < files.length; i++) {
$("#documentName").val(files[i].name);
} });});