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

MimeMagic is incorrectly detecting XLSX files as application/zip #1820

Closed
stuzart opened this issue Apr 9, 2024 · 0 comments
Closed

MimeMagic is incorrectly detecting XLSX files as application/zip #1820

stuzart opened this issue Apr 9, 2024 · 0 comments
Assignees
Milestone

Comments

@stuzart
Copy link
Member

stuzart commented Apr 9, 2024

Not entirely sure why, I have the latest shared-mime-info package installed. Some if not all XLXS files are being detected as application/zip when double checked through mime magic.

It makes use of the mimemagic gem, and it's this gem that is incorrectly returning the incorrect type.

This cropped up with out of memory errors when trying to explore a largish spreadsheet. When there is an error there is step to double check and update the mime type.

the mimemagic gem is no longer actively supported, and ActiveStorage now uses Marcel, which I've tested and checked it responds with the correct mimetype.

@stuzart stuzart added this to the v1.15.0 milestone Apr 9, 2024
@stuzart stuzart self-assigned this Apr 9, 2024
stuzart added a commit that referenced this issue Apr 9, 2024
@stuzart stuzart closed this as completed Apr 16, 2024
@stuzart stuzart modified the milestones: v1.15.0, 1.15.2 Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant