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

docx file is recognised as zip file #121

Open
mattlock2 opened this issue Nov 14, 2022 · 3 comments
Open

docx file is recognised as zip file #121

mattlock2 opened this issue Nov 14, 2022 · 3 comments

Comments

@mattlock2
Copy link

mattlock2 commented Nov 14, 2022

I created a simple word document with the Word "hello" in it (attached), saved it as a .docx file.

But filetype.Match returns zip even if I send the entire file (all 12kb) to filetype.Match

I'm using version v1.1.3

Hello.docx

Sounds like it's related to this bug https://stackoverflow.com/a/72664761/8595398 where filetype.Match isn't looking at enough of the file to determine that it's docx rather than zip

@dpanic
Copy link

dpanic commented May 2, 2023

I have the same issue

@zhuqiming
Copy link

I have the same issue,but the file is. xlsx, this is my file,
联系人跟进状态分布-2023-06-07 15_26_33.xlsx

@zhuqiming
Copy link

I have the same issue

use "github.com/gabriel-vasile/mimetype" may be solve this problem

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

No branches or pull requests

3 participants