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; }