Git Product home page Git Product logo

Comments (3)

dougwilson avatar dougwilson commented on May 26, 2024

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.

adrienrn avatar adrienrn commented on May 26, 2024

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.

dougwilson avatar dougwilson commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.