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

Error: Mime type not found at checkFileType #22

Closed
heyFahad opened this issue Jun 29, 2020 · 1 comment
Closed

Error: Mime type not found at checkFileType #22

heyFahad opened this issue Jun 29, 2020 · 1 comment

Comments

@heyFahad
Copy link

How can I override this mime type check while generating a hash? My script works fine in macOS, but when I try to execute the same script inside a Ubuntu based docker container, I get this Mime type not found error.
Basically, I'm first downloading the corresponding image from my server and then pass its path to imageHash function. I'm testing the script with same image URL on both macOS and Ubuntu container. MacOS does give me an output saying No file extension found, attempting mime typing. but then it works fine.
So my questing is, how can override this mime type checking? Can I??

@danm
Copy link
Owner

danm commented May 4, 2022

No you can't override it, annoyingly. If this is still a feature you need, create a new issue requesting a feature to skip file check, as long as the file extension is at the end of the file name.

@danm danm closed this as completed May 4, 2022
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

2 participants