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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user