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 common name? #114

Closed
raineorshine opened this issue Feb 5, 2015 · 2 comments
Closed

Add common name? #114

raineorshine opened this issue Feb 5, 2015 · 2 comments

Comments

@raineorshine
Copy link

Thoughts about adding a property like commonName that provides a short, commonly used label for certain types?

e.g.
text/calendar is commonly known as iCalendar.

This is coming up for me because I am building an app that displays file types as a dropdown list for end users.

@broofa
Copy link
Owner

broofa commented Feb 5, 2015

Hi Raine, I can see how this would be valuable, but it's out of scope for this project. (And will be even more out of scope once I finish merge the PR I have up for switching over to use mime-db as the source of mime mappings.)

One issue I see with this is that not only are there 100's of mime-types that you'd need to determine the common names for, but users will likely contest some of the naming. And at some point you'd probably need to worry about localization issues. So, not a small problem.

@broofa broofa closed this as completed Feb 5, 2015
@raineorshine
Copy link
Author

Most mime-types can just use what's after the /, without x- or vnd, as a user-friendly name. There were just a few like iCalendar that are different and indeterminable from the type alone. Localization is certainly out of scope.

I will see what the folks over at mime-db have to say. Thanks for the response!

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