Skip to content

Instantly share code, notes, and snippets.

@krams915
Created June 19, 2012 08:22
function getFilelist() {
var files = $('body').data('filelist');
var filenames = '';
for (var i=0; i<files.length; i<i++) {
var suffix = (i==files.length-1) ? '' : ',';
filenames += files[i].name + suffix;
}
return filenames;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment