Comments (3)
Hi! The best way to get new media types included in this library is to register them with the IANA. The community registration procedure is outlined in RFC 6838 section 5. Types registered with the IANA are automatically pulled into this library.
Are these registered types? This database is just an aggregation of the sources outlined in the readme, not really the place for new types to appear. If these are registered types we are missing, can you link to the standards that define these extensions and their MIMEs? Otherwise I suggest working to get them registered in the sources we aggregate, like the IANA.
I hope this helps!
from mime-db.
What about aliases that IANA will not accept such as text/javascript
instead of the now standard application/javascript
?
For example, PHP which mime type is not yet standard can use multiple mime types. One will eventually make it to the IANA or Apache public domain but what to do with aliases that make sense in a way:
- text/x-php (debian magic detection)
- application/php (following what's been done for javascript, IANA will probably choose this)
- application/x-php
- application/x-httpd-php (already in custom-types.json)
I see that you have a custom-types.json file. I know that it will probably depend on the nature of the addition and that you most likely don't want it to grow too much but can we make pull request to this file or is it reserved?
Thanks a lot!
from mime-db.
Types that are not accepted by the IANA can also be added here, yes, in the custom-types.json
file. Feel free to file a PR! We try to be really careful of what we add here, so we try to limit it to truly existing types that are not official rather than new types people want to just create, if that makes sense.
So if you want to make a PR, please go ahead! Try to explain why you think the type should be in here, for example "this is a very common type on the Internet but is not the IANA official type".
from mime-db.
Related Issues (20)
- Missing mime type image/avif-sequence HOT 3
- '.zip' file has a 'application/x-zip-compressed' in Windows. HOT 2
- What are the allowed characters for an extension? HOT 6
- .asc extension maps to application/pgp-signature instead of application/pgp-keys HOT 1
- TypeScript file extensions map to incorrect file types HOT 1
- Re-raising the now updated JS mime-type issue (from #194) HOT 7
- Add `.json` extension for `application/jf2feed+json` HOT 2
- `.mov` vs `.qt` HOT 9
- Add .yamlld extension HOT 1
- YAML is application/yaml HOT 3
- Add image/jpeg for .jfif file extension
- ts extension incorrectly mapped to video/mp2t ? HOT 4
- Update existing dcm format HOT 1
- Minify `db.json` file HOT 5
- Missing extensions list for model/step HOT 2
- YAML missing some types HOT 5
- text/calender
- Broken tests for Node@8 and Node@9
- Add `application/x-python-code` and `text/x-python` types
- Add mime types for `mhtml` files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mime-db.