From e76f40548b02c6716d3c3b06e1508c71b744e01f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 9 Apr 2021 14:22:11 +0100 Subject: [PATCH] Disable image processing of attachments --- packages/server/src/api/controllers/static/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/server/src/api/controllers/static/index.js b/packages/server/src/api/controllers/static/index.js index cda18fbea5..ee1e5054d7 100644 --- a/packages/server/src/api/controllers/static/index.js +++ b/packages/server/src/api/controllers/static/index.js @@ -53,10 +53,11 @@ exports.uploadFile = async function(ctx) { const processedFileName = `${uuid.v4()}.${fileExtension}` // need to handle image processing - await fileProcessor.process({ - ...file, - extension: fileExtension, - }) + // TODO either offer this as an option, or don't do it at all + // await fileProcessor.process({ + // ...file, + // extension: fileExtension, + // }) return prepareUpload({ file,