Comments (6)
Hi, I pushed a fix to branch fix_msoxml
.
Please run go get github.com/gabriel-vasile/mimetype@fix_msoxml
and confirm it fixes this issue.
I will then merge it and make a release out of it.
from mimetype.
Great! v0.3.23 has the updated code.
from mimetype.
Hi, can you please paste the output of
file --mime thefile.zip
libmagic has a slightly different detection that could be ported to mimetype
if it works correctly.
from mimetype.
Hi, file --mime ...
reports the file as application/zip; charset=binary
. Looking at what libmagic does, it seems to have some extra logic about the zip format and parsing the TOC.
from mimetype.
Sorry, I completely forgot to test this. I will check later today and get back to you.
from mimetype.
Right, finally tested. That seems to work fine, the zip file is now correctly detected as a zip.
from mimetype.
Related Issues (20)
- License information of test files HOT 2
- tar archives with large UIDs/GIDs not detected HOT 4
- Audio stream recording file extension is not detected HOT 6
- Add support for cyclonedx BOM types
- Add test file for JXS when the JXS implementation is released
- Outlook mail is detected as msword (v1.4.0) and as x-ole-storage (v1.4.1) HOT 1
- How do I get supported MIME by code?
- txt detect as application/octet-stream HOT 5
- txt detect as application/octet-stream HOT 1
- APK file not supported
- Allow disabling some default detectors
- Reduce memory consumption of CSV/TSV detectors
- PPT detected as 'application/x-ole-storage' HOT 8
- The library failed to detect .pfx extension HOT 1
- .torrent file in testdata getting detected as malicious file and causing build issue. HOT 5
- Add support for yaml and markdown file format HOT 1
- .zip incorrectly detected as .xlsx possible regression
- Test coverage is not accurate
- Add support for python3 and compiled pyc file format
- Cannot download library in docker build HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimetype.