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

No equivalent of mime.ExtensionsByType #62

Open
kmanley opened this issue Feb 21, 2019 · 3 comments
Open

No equivalent of mime.ExtensionsByType #62

kmanley opened this issue Feb 21, 2019 · 3 comments

Comments

@kmanley
Copy link
Contributor

kmanley commented Feb 21, 2019

I want to replace my use of mime.ExtensionsByType with filetype because filetype understands more types (e.g. HEIF). However there's not currently a function in filetype that returns a Type by MIME. I'll send a PR.

kmanley pushed a commit to kmanley/filetype that referenced this issue Feb 21, 2019
@isikemre
Copy link

isikemre commented Aug 5, 2019

I agree with that, it should be a equivalent for GetType(ext string)

@joytry1
Copy link

joytry1 commented Jul 14, 2020

Agree, I need it too.
But, does MIME and types.Type was corresponding ?

@ptman
Copy link

ptman commented Jul 14, 2020

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

4 participants