Skip to content

Commit

Permalink
fix(updateFileMimeType): overwrite mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Oct 15, 2024
1 parent d4b0cc1 commit 2e8c887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/import/processors/updateFileMimeType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 2e8c887

Please sign in to comment.