From 9216a69c0541325be6941c07d256b07627a8ec73 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 27 Feb 2023 16:38:16 +0200 Subject: [PATCH] Temporarily disable file validation, because it prevents migrating some attachments at wekan/server/migrations.js to ostrio Meteor-Files. Thanks to xet7 ! Related #4780, related https://github.com/wekan/wekan/pull/4648 --- models/fileValidation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/fileValidation.js b/models/fileValidation.js index 5fa473e7c..6350f06c2 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 (mimeTypesAllowed.length) { const mimeTypeResult = await FileType.fromFile(fileObj.path); @@ -43,6 +44,7 @@ export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, extern if (isValid) { console.debug("Validation of uploaded file successful: file " + fileObj.path); } +*/ return isValid; }