diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 51242b9a2..a5f318bbd 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -342,6 +342,7 @@ } if (typeof _config.document.fileType === 'string' && _config.document.fileType != '') { + _config.document.fileType = _config.document.fileType.toLowerCase(); var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods|ots)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp|otp)|(doc|docx|doct|odt|gdoc|txt|rtf|pdf|mht|htm|html|epub|djvu|xps|docm|dot|dotm|dotx|fodt|ott))$/ .exec(_config.document.fileType); if (!type) {