Merge commit from fork

Co-authored-by: b4sh2 <b4sh2@users.noreply.github.com>
This commit is contained in:
b4sh2
2026-02-20 17:59:44 +01:00
committed by GitHub
parent 873c963043
commit d6472f0876
@@ -2,6 +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';
export interface PreparedFile {
buffer?: Buffer;
@@ -40,7 +41,7 @@ export async function prepareFile(
fileName,
fileSize,
fileExtension,
mimeType: file.mimetype,
mimeType: getMimeType(file.originalname),
multiPartFile: file,
};
} catch (error) {