Skip to content

fix(updateFileMimeType): overwrite mimetype#664

Merged
floryst merged 1 commit intomainfrom
fix-nii-gz-files
Oct 23, 2024
Merged

fix(updateFileMimeType): overwrite mimetype#664
floryst merged 1 commit intomainfrom
fix-nii-gz-files

Conversation

@floryst
Copy link
Contributor

@floryst floryst commented Oct 15, 2024

Closes #663, and maybe #655.

Overwrites/normalizes the default OS-provided mimetype. Also ensures that the mime type is a supported mime type.

@PaulHax I think this should be fine, since if it's an unsupported mime type, setting to "null" won't change any logic.

Should also be applied here: https://github.com/Kitware/VolView/pull/635/files#diff-7d267f00b6c6e1caa0952df237d876fce197c2048228c5f5bda7dd583232a40eR10

@floryst floryst requested a review from PaulHax October 15, 2024 18:48
@netlify
Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 2e8c887
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/670eb905d54a5400096e7c2a
😎 Deploy Preview https://deploy-preview-664--volview-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@PaulHax PaulHax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of anything this would break.

@PaulHax PaulHax linked an issue Oct 15, 2024 that may be closed by this pull request
@floryst floryst added this pull request to the merge queue Oct 23, 2024
Merged via the queue into main with commit b649c65 Oct 23, 2024
PaulHax pushed a commit to PaulHax/VolView that referenced this pull request Apr 24, 2025
fix(updateFileMimeType): overwrite mimetype
@zachmullen zachmullen deleted the fix-nii-gz-files branch November 11, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

*.gz file extension failed to resolve to correct mime type Unsupported data type error

2 participants