fix
This commit is contained in:
parent
53132acb0a
commit
c172d3bd5e
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue