From 3c38fb5e078e46a6c9d111a5a4a33995c55bdad9 Mon Sep 17 00:00:00 2001 From: Zuzanna Ludzik Date: Tue, 4 Aug 2026 13:58:06 +0200 Subject: [PATCH 1/2] restrict svg uploads --- sdkjs/common/editorscommon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkjs/common/editorscommon.js b/sdkjs/common/editorscommon.js index 34410fa69f..1945d66627 100644 --- a/sdkjs/common/editorscommon.js +++ b/sdkjs/common/editorscommon.js @@ -1714,7 +1714,7 @@ //todo get from server config var c_oAscImageUploadProp = {//Не все браузеры позволяют получить информацию о файле до загрузки(например ie9), меняя параметры здесь надо поменять аналогичные параметры в web.common MaxFileSize: 25000000, //25 mb - SupportedFormats: ["jpg", "jpeg", "jpe", "png", "gif", "bmp", "svg", "tiff", "tif"] + SupportedFormats: ["jpg", "jpeg", "jpe", "png", "gif", "bmp", "tiff", "tif"] }; var c_oAscDocumentUploadProp = { From 436e6c1e1e3bed1a50422e10eecd0b00b9e516b7 Mon Sep 17 00:00:00 2001 From: Zuzanna Ludzik Date: Wed, 5 Aug 2026 12:36:33 +0200 Subject: [PATCH 2/2] added comment --- sdkjs/common/editorscommon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sdkjs/common/editorscommon.js b/sdkjs/common/editorscommon.js index 1945d66627..eea9cdf979 100644 --- a/sdkjs/common/editorscommon.js +++ b/sdkjs/common/editorscommon.js @@ -1712,6 +1712,7 @@ }; //todo get from server config + // CryptPad: removed .svg from supported formats to display the relevant error modal when user attempts .svg file import var c_oAscImageUploadProp = {//Не все браузеры позволяют получить информацию о файле до загрузки(например ie9), меняя параметры здесь надо поменять аналогичные параметры в web.common MaxFileSize: 25000000, //25 mb SupportedFormats: ["jpg", "jpeg", "jpe", "png", "gif", "bmp", "tiff", "tif"]