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