Repository navigation
Map .hif files to image/heif - #911
Merged
Merged
Conversation
Canon and Sony cameras write HEIF photos with the .hif extension. Without a mapping these were served as application/octet-stream, so they got no preview and no viewer, while the same image saved as .heif did.
kulmann
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Canon (EOS R5, R6, R3, 1D X Mark III) and Sony (α1, α7 IV, α7S III) cameras write HEIF photos with the
.hifextension. The mime table hadheic,heics,heifandheifs, but nothif, so these files were served asapplication/octet-stream: nohas-preview, no thumbnail and no viewer, while the same image saved as.heifgot all three.This adds the one missing extension. It pairs with opencloud-eu/web#4009, which opens HEIF and AVIF images in the web viewer wherever the server renders a preview for them.