Skip to content

Commit

Permalink
add gen pptx desc sup (#7021)
Browse files Browse the repository at this point in the history
  • Loading branch information
cir9no authored Nov 11, 2024
1 parent 20d6828 commit bf4f101
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion frontend/src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bf4f101

Please sign in to comment.