|
@@ -271,8 +271,8 @@
|
271
|
271
|
var html = '';
|
272
|
272
|
html += '<table class="table fileupload-download">';
|
273
|
273
|
html += '<tbody>';
|
274
|
|
- $.each(result, function (key, value) {
|
275
|
|
- if(instance[el].options.showThumb == true) {
|
|
274
|
+ $.each(result, function (key, value) {
|
|
275
|
+ if(instance[el].options.showThumb == true && value.fileOrgNm.match(/\.(jpg|jpeg|png|gif|bmp|svg|ico)$/i) ) {
|
276
|
276
|
html += '<tr class="fileupload-downloadrow thumb row">';
|
277
|
277
|
html += '<td class="col-xs-1"><img src="'+value.filePath+'" alt="'+value.fileOrgNm+'" width="80px" height="80px" class="fileupload-previewimg"></td>';
|
278
|
278
|
} else {
|
|
@@ -385,7 +385,7 @@
|
385
|
385
|
availableFileTypes["files"] = ["doc", "docx", "dotx", "docm", "ods", "odt", "ott", "ods", "pdf", "ppt", "pptm", "pptx", "pub", "rtf", "csv", "log", "txt", "xls", "xlsm", "xlsx"];
|
386
|
386
|
availableFileTypes["images"] = ["bmp", "tif", "tiff", "gif", "jpeg", "jpg", "png", "svg", "ico", "raw"];
|
387
|
387
|
availableFileTypes["video"] = ["avi", "flv", "swf", "m4v", "mkv", "mov", "mp4", "ogv", "wmv"];
|
388
|
|
-
|
|
388
|
+
|
389
|
389
|
buildFileTypes(el);
|
390
|
390
|
|
391
|
391
|
if (instance[el].options.debug !== true && instance[el].options.debug !== false) {
|
|
@@ -717,7 +717,7 @@
|
717
|
717
|
*/
|
718
|
718
|
function genThumb (el, file, fileType, fileExt) {
|
719
|
719
|
var thumb;
|
720
|
|
-
|
|
720
|
+ console.log("genThumb fileType == "+fileType)
|
721
|
721
|
switch (fileType) {
|
722
|
722
|
case 'archives':
|
723
|
723
|
if (instance[el].options.useFontAwesome === true && instance[el].options.fontAwesomeVer !== false) {
|
|
@@ -801,7 +801,6 @@
|
801
|
801
|
|
802
|
802
|
break;
|
803
|
803
|
}
|
804
|
|
-
|
805
|
804
|
return thumb;
|
806
|
805
|
}
|
807
|
806
|
|