For example, when drag'n'drop a file.nii.gz compressed nifti file into the volview website, it cannot be opened.
I added some debug console log and see the fileType is being resolved to application/gzip, which is incorrect.
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:
My implementation is not very comprehensive. Hope this can be fixed by volview offical team, thanks!
For example, when drag'n'drop a
file.nii.gz
compressed nifti file into the volview website, it cannot be opened.I added some debug console log and see the
fileType
is being resolved toapplication/gzip
, which is incorrect. By looking up themimeTypes.ts
file I think it should beapplication/vnd.unknown.nifti-1
.I think the
*.gz
file names should be handled specifically in theupdateFileMimeType.ts
to correctly resolve the mime type.Below is my quick fix for the
nii.gz
file:My implementation is not very comprehensive. Hope this can be fixed by volview offical team, thanks!