Skip to content

Commit

Permalink
Merge pull request #664 from Kitware/fix-nii-gz-files
Browse files Browse the repository at this point in the history
fix(updateFileMimeType): overwrite mimetype
  • Loading branch information
floryst authored Oct 23, 2024
2 parents 379504f + 2e8c887 commit b649c65
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 b649c65

Please sign in to comment.