fix: Fix attachment file handling when S3 is enabled

This commit is contained in:
Maksim Eltyshev
2025-12-11 19:26:55 +01:00
parent 869a6b4c00
commit 12f388fd35

View File

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