From 2e8c887bf6c9b973d4964fe8b452fae5ce7e7d35 Mon Sep 17 00:00:00 2001 From: Forrest Date: Tue, 15 Oct 2024 14:45:20 -0400 Subject: [PATCH] fix(updateFileMimeType): overwrite mimetype --- src/io/import/processors/updateFileMimeType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/import/processors/updateFileMimeType.ts b/src/io/import/processors/updateFileMimeType.ts index b805df8c4..a7f92c6a6 100644 --- a/src/io/import/processors/updateFileMimeType.ts +++ b/src/io/import/processors/updateFileMimeType.ts @@ -8,7 +8,7 @@ import { ImportHandler } from '@/src/io/import/common'; const updateFileMimeType: ImportHandler = async (dataSource) => { let src = dataSource; const { fileSrc } = src; - if (fileSrc && fileSrc.fileType === '') { + if (fileSrc) { const mime = await getFileMimeType(fileSrc.file); if (mime) { src = {