-
Notifications
You must be signed in to change notification settings - Fork 163
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
The msi file is marked to msword #231
Comments
If you don't have any privacy concerns, please upload the .msi file. Does disabling the limit help? mimetype.SetLimit(0)
mimetype.Detect(.msi) |
mimetype.SetLimit(0) type: application/msword the msi link is: https://download.tortoisegit.org/tgit/2.12.0.0/TortoiseGit-2.12.0.0-32bit.msi |
Previously the offset for the CLSID was searched for using v3 offsets. This commit changes detection to check CFB version in order to choose between v3(512) and v4(4096) offsets. https://www.loc.gov/preservation/digital/formats/fdd/fdd000392.shtml
Hi, #240 should fix this. You can test it with: go get github.com/gabriel-vasile/mimetype@b497e3d7a11a41902e4e2f29d931521714befc26 mimetype.SetLimit(1024 * 1024)
mimetype.DetectFile("tortoise.msi") Let me know if there's any problems still. |
Thanks, in the above way, the problem is solved。 |
Expected MIME type
application/x-ms-installer
Returned MIME type
application/msword
Expected Extension
.msi
Returned Extension
.doc
use version: github.com/gabriel-vasile/mimetype v1.4.0
has tried to do this: mimetype.SetLimit(1024 * 1024)
The text was updated successfully, but these errors were encountered: