1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

add gen pptx desc sup (#7021)

This commit is contained in:
cir9no
2024-11-11 17:31:59 +08:00
committed by GitHub
parent 20d6828d00
commit bf4f101a06

View File

@@ -1068,8 +1068,22 @@ export const Utils = {
}
},
isPptxFile: function (filePath) {
let index = filePath.lastIndexOf('.');
if (index === -1) {
return false;
} else {
let type = filePath.substring(index).toLowerCase();
if (type === '.pptx') {
return true;
} else {
return false;
}
}
},
isDescriptionSupportedFile: function (filePath) {
return Utils.isSdocFile(filePath) || Utils.isMarkdownFile(filePath) || Utils.pdfCheck(filePath) || Utils.isDocxFile(filePath);
return Utils.isSdocFile(filePath) || Utils.isMarkdownFile(filePath) || Utils.pdfCheck(filePath) || Utils.isDocxFile(filePath) || Utils.isPptxFile(filePath);
},
isFileMetadata: function (type) {