Comments (4)
Package has been updated.
from mime.
File maybe too small to detect correct filetype.
libmagic just check file headers(signatures) and if no match, returns default type(application/octet-stream with .bin extension)
from mime.
Hey @hey-red
Thanks for answer,
It is interesting that when opening file in excel and just saving it, then it works.
Also we have other sample files (that we can't share it here because of sensitive data in it) that they have content and are not small, and same thing happens to them, so I doubt it's related to file size
from mime.
@RezaRahmati
You can try to build your own magic.mgc, because I don't know when I can update .mgc file in that repo(it very old build).
magic.mgc is it compiled libmagic database, that uses these files as source
https://github.com/file/file/tree/master/magic/Magdir
also, maybe you interesting how libmagic detect .xlsx
https://github.com/file/file/blob/master/magic/Magdir/msooxml
this file has been recently updated and maybe that will help.
from mime.
Related Issues (20)
- Implement magic_list
- Building this project to net 4.5/x86 specification
- Update documentation to mention that magic_open isn't thread safe (new Magic()) HOT 12
- missing alpine linux x64 support HOT 1
- Unable to find libmagic-1 on Ubuntu 20.04 HOT 5
- linux-musl-x64 is missing from runtimeTargets HOT 4
- Libmagic not compatibile with Xamarin on mobile devices
- Different results using filePath vs stream input HOT 2
- Got error with visual studio 2015 HOT 3
- Update File to version 5.41 HOT 7
- libmagic dependency mismatch on MacOS Monterey (5.41) HOT 2
- "Could not find any valid magic files!" when included in a Nuget package HOT 5
- native lib for M1 Mac os HOT 15
- Update file to 5.44 HOT 5
- Does not pick up Parquet files HOT 2
- Copy native libs to correct build output directory for Azure Functions
- Different extension compared to the `file` command HOT 2
- Different results on Linux and Windows
- HeyRed.Mime.MagicException: Could not find any valid magic files! on Windows Server 2012 R2 when program is on path with ů
- 3.6.0 - libmagic-1.dll flagged as virus HOT 1
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 mime.