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

Add content type-to-extension conversion #13

Open
tmannherz opened this issue Dec 7, 2017 · 7 comments · May be fixed by #81
Open

Add content type-to-extension conversion #13

tmannherz opened this issue Dec 7, 2017 · 7 comments · May be fixed by #81
Labels
contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) type-enhancement A request for a change that isn't a bug

Comments

@tmannherz
Copy link

Currently, the package only does file-to-content type conversion via the lookupMimeType function. As the extension maps already exist, it'd be easy to add both sides of the lookup, something like:

print(lookupExtension('text/html'));  // html
print(lookupExtension('application/pdf'));  // pdf
@kevmoo
Copy link
Member

kevmoo commented Dec 8, 2017

Pull requests welcome!

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) labels Dec 8, 2017
tmannherz added a commit to tmannherz/mime that referenced this issue Dec 11, 2017
tmannherz added a commit to tmannherz/mime that referenced this issue Dec 11, 2017
@d-silveira
Copy link

doesn't these reference commits close this issue?
@tmannherz did you request a pull?

@lifenautjoe
Copy link

Any clue when this might be released? 🙏

@ZuSe
Copy link

ZuSe commented Aug 27, 2019

Pull request needs to be merged first
#15

@mx1up
Copy link

mx1up commented Dec 12, 2022

pull request #15 is closed, but without comment. Does anyone know the reason? Otherwise, I'd like to make a new PR with similar implementation

@kevmoo
Copy link
Member

kevmoo commented Dec 14, 2022

It was abandoned by the author. If someone else wants that functionality, starting with a new PR would be great!

@tmannherz
Copy link
Author

Sorry, the related PR lingered for so long awaiting approval (~2 years) that I can't support it and don't do any active Dart development, so I closed it. Feel free to copy and take it over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants