Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

feat(backend:files): add support for editing `doc`, `xls`, and `ppt` file formats in OnlyOffice constants map (allow implicit conversion)

johavene6523f410fa2
diff --git a/backend/src/applications/files/constants/only-office.ts b/backend/src/applications/files/constants/only-office.ts
index 33ee7bf0..a5c3df1a 100644
--- a/backend/src/applications/files/constants/only-office.ts
+++ b/backend/src/applications/files/constants/only-office.ts
@@ -96,6 +96,7 @@ export const ONLY_OFFICE_EXTENSIONS = {
EDITABLE: new Map([
// WORD
+ ['doc', 'word'],
['docm', 'word'],
['docx', 'word'],
['dotm', 'word'],
@@ -112,6 +113,7 @@ export const ONLY_OFFICE_EXTENSIONS = {
// CELL
['xlsb', 'cell'],
['xlsm', 'cell'],
+ ['xls', 'cell'],
['xlsx', 'cell'],
['xltm', 'cell'],
['xltx', 'cell'],
@@ -125,6 +127,7 @@ export const ONLY_OFFICE_EXTENSIONS = {
['ppsm', 'slide'],
['ppsx', 'slide'],
['pptm', 'slide'],
+ ['ppt', 'slide'],
['pptx', 'slide'],
['odp', 'slide'],
['otp', 'slide'],