From c172d3bd5e8cbed77d50f8c9b6c3354aa0851ea1 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sat, 21 Feb 2026 00:43:49 +0000 Subject: [PATCH] fix --- apps/server/src/core/attachment/attachment.utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/core/attachment/attachment.utils.ts b/apps/server/src/core/attachment/attachment.utils.ts index 0bddee1a..88edb2af 100644 --- a/apps/server/src/core/attachment/attachment.utils.ts +++ b/apps/server/src/core/attachment/attachment.utils.ts @@ -2,7 +2,7 @@ import { MultipartFile } from '@fastify/multipart'; import * as path from 'path'; import { AttachmentType } from './attachment.constants'; import { sanitizeFileName } from '../../common/helpers'; -import { getMimeType } from '../../common/helpers/file.helper'; +import { getMimeType } from '../../common/helpers'; export interface PreparedFile { buffer?: Buffer; @@ -41,7 +41,7 @@ export async function prepareFile( fileName, fileSize, fileExtension, - mimeType: getMimeType(file.originalname), + mimeType: getMimeType(file.filename), multiPartFile: file, }; } catch (error) {