We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59ee1d2 + db942d0 commit 776e73aCopy full SHA for 776e73a
bootstrap.file-input.js
@@ -100,7 +100,11 @@ $.fn.bootstrapFileInput = function() {
100
// Remove any previous file names
101
$(this).parent().next('.file-input-name').remove();
102
if (!!$(this).prop('files') && $(this).prop('files').length > 1) {
103
- fileName = $(this)[0].files.length+' files';
+ var filesLabel = $(this).data('files-label');
104
+ if (!filesLabel) {
105
+ filesLabel = 'files';
106
+ }
107
+ fileName = $(this)[0].files.length+' '+filesLabel;
108
}
109
else {
110
fileName = fileName.substring(fileName.lastIndexOf('\\') + 1, fileName.length);
0 commit comments