Skip to content

*.gz file extension failed to resolve to correct mime type #663

@1isten

Description

@1isten

For example, when drag'n'drop a file.nii.gz compressed nifti file into the volview website, it cannot be opened.
image

I added some debug console log and see the fileType is being resolved to application/gzip, which is incorrect.
image
By looking up the mimeTypes.ts file I think it should be application/vnd.unknown.nifti-1.

I think the *.gz file names should be handled specifically in the updateFileMimeType.ts to correctly resolve the mime type.

Below is my quick fix for the nii.gz file:
image

My implementation is not very comprehensive. Hope this can be fixed by volview offical team, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions