From 12f388fd357e3ace12af2c3d3ecf926ac7ce866c Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Thu, 11 Dec 2025 19:26:55 +0100 Subject: [PATCH] fix: Fix attachment file handling when S3 is enabled --- server/api/helpers/attachments/process-uploaded-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/helpers/attachments/process-uploaded-file.js b/server/api/helpers/attachments/process-uploaded-file.js index 52d48830..f1146cc3 100644 --- a/server/api/helpers/attachments/process-uploaded-file.js +++ b/server/api/helpers/attachments/process-uploaded-file.js @@ -66,7 +66,7 @@ module.exports = { }; if (!['image/svg+xml', 'application/pdf'].includes(mimeType)) { - let image = sharp(buffer || filePath, { + let image = sharp(buffer || filePath || inputs.file.fd, { animated: true, });