1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +00:00

[tiff] offer thumbnail for tiff files (#3869)

This commit is contained in:
llj
2019-07-18 18:18:51 +08:00
committed by Daniel Pan
parent cfc5f71417
commit a0f31f2708

View File

@@ -96,7 +96,7 @@ export const Utils = {
return false;
}
var file_ext = filename.substr(filename.lastIndexOf('.') + 1).toLowerCase();
var image_exts = ['gif', 'jpeg', 'jpg', 'png', 'ico', 'bmp'];
var image_exts = ['gif', 'jpeg', 'jpg', 'png', 'ico', 'bmp', 'tif', 'tiff'];
if (image_exts.indexOf(file_ext) != -1) {
return true;
} else {