|
@@ -2187,8 +2187,8 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
var node = ctr + i, previewId = previewInitId + "-" + node, isText, isImage, file = files[i],
|
|
var node = ctr + i, previewId = previewInitId + "-" + node, isText, isImage, file = files[i],
|
|
- caption = self.slug(file.name), fileSize = (file.size || 0) / 1000, checkFile, fileExtExpr = '',
|
|
|
|
- previewData = objUrl.createObjectURL(file), fileCount = 0, j, msg, typ, chk,
|
|
|
|
|
|
+ caption = file.name ? self.slug(file.name) : '', fileSize = (file.size || 0) / 1000, checkFile,
|
|
|
|
+ fileExtExpr = '', previewData = objUrl.createObjectURL(file), fileCount = 0, j, msg, typ, chk,
|
|
fileTypes = self.allowedFileTypes, strTypes = isEmpty(fileTypes) ? '' : fileTypes.join(', '),
|
|
fileTypes = self.allowedFileTypes, strTypes = isEmpty(fileTypes) ? '' : fileTypes.join(', '),
|
|
fileExt = self.allowedFileExtensions, strExt = isEmpty(fileExt) ? '' : fileExt.join(', ');
|
|
fileExt = self.allowedFileExtensions, strExt = isEmpty(fileExt) ? '' : fileExt.join(', ');
|
|
if (!isEmpty(fileExt)) {
|
|
if (!isEmpty(fileExt)) {
|