Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block unwanted file types from avatar upload #10135

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

gregorbg
Copy link
Member

One of the gazillion reasons to hate Apple! When switching to the new avatar backend, we introduced support for "web images" according to Rails -- which in turn basically just relies on MIME types and standards.

Apple's "High Efficiency Image Codec" somehow managed to get approved as "web image" in that standard, but those money-greedy bastards of course didn't release their codec properly. So while it's technically adhering to the standard, in practice most browsers don't support it because they don't know how to decode the image stream client-side.

Now we have to fall back to hard-blocking HEIC files, sigh...

Copy link
Member

@FinnIckler FinnIckler left a comment

Choose a reason for hiding this comment

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

@gregorbg gregorbg merged commit 18f7515 into thewca:main Oct 29, 2024
2 checks passed
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.

2 participants