From e7122a9b368e25cc155f39e34fff741fcc9f004c Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 14 Apr 2023 14:20:39 +0300 Subject: [PATCH] Disable file validation temporarily, because it causes data loss of some attachments when upgrading. Thanks to xet7 ! Related https://github.com/wekan/wekan/issues/4891 --- models/fileValidation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/fileValidation.js b/models/fileValidation.js index bd296ee4b..349a2572e 100644 --- a/models/fileValidation.js +++ b/models/fileValidation.js @@ -13,6 +13,7 @@ if (Meteor.isServer) { export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, externalCommandLine) { let isValid = true; +/* if (Meteor.settings.public.ostrioFilesMigrationInProgress !== "true") { if (mimeTypesAllowed.length) { const mimeTypeResult = await FileType.fromFile(fileObj.path); @@ -45,6 +46,7 @@ export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, extern console.debug("Validation of uploaded file successful: file " + fileObj.path); } } +*/ return isValid; }