mime-types / mime-types-data Goto Github PK
View Code? Open in Web Editor NEWMIME Type registry data
License: Other
MIME Type registry data
License: Other
Hi
You appear to have no branches and from what I can tell from your recent commits this gem now requires ruby 2.
I use an old version of the fog gem via an elastic search chef cookbook which eventually depends on this gem but I am also running on an old version of chef which uses Ruby 1.9.
Now I cannot boot new elastic search servers because I do not have ruby 2. Any chance of a tag from before you required Ruby 2?
Hi!
Recently I wanted to use MIME::Types.type_for
to detect a file content type, but I receive nothing when I try to detect the content type of a JFIF file.
MIME::Types.type_for("something.jpeg")
=> [#<MIME::Type: image/jpeg>]
MIME::Types.type_for("something.jfif")
=> []
Expected result:
This should return [#<MIME::Type: image/jpeg>]
Actual result:
it returns an empty array
The release process is relatively fast, but it should be automated as much as possible.
The release process looks like this:
bundle install
bundle exec rake mime:apache
bundle exec rake mime:iana
font/*
top-level category.)bundle exec rake convert
bundle exec rake update:version
(This is new as of today.)History.md
. If any PRs have been merged, these should be noted specifically.bundle exec rake release VERSION=newversion
.Some thoughts on this:
Hoe.plugin :doofus
for automation (but it should not be suppressed for human-based releases).I think this needs to be done, but I have no time to implement such automation, nor am I running a server anywhere that could host it.
Your readme claims the following:
This registry contains the MIME media types in three formats:
A YAML format matching the Ruby mime-types library objects (MIME::Type). This is the primary user-editable format.
So I'd expect that the gem ships the YAML data as well, but that is not true. Could you please clarify the readme a bit? Or the gem of course ...
Thank you.
Some mime types come from IANA, right?
Is there some way to have separate data sources based on different orgs, e.g. IANA, Apache, Unofficial, etc.
Does that even make sense?
I'm looking at the text mime types.
I see text/plain includes markdown and md as extensions, but I also see text/markdown but without any extensions listed.
http://stackoverflow.com/questions/10701983/what-is-the-mime-type-for-markdown
Is this a bug?
This gem prefers image/x-bmp
(reference) but image/bmp
should be used instead.
image/bmp
is documented here: https://www.iana.org/assignments/media-types/image/bmp
Please add application/x-rpm or application/x-redhat-package-manager for rpm files. RPM is a widely used format for software packages in Linux.
It's ok if files ending with .ai
acquire a MIME type of application/pdf
, although the preferred MIME type for .ai
files should really be application/vnd.adobe.illustrator
.
It is not fine that the preferred filename extension for application/pdf
is suddenly and abruptly changed from .pdf
to .ai
.
Billions of PDF documents around the world have nothing to do with Illustrator.
Downloading a file of application/pdf
should default to a filename with a suffix of .pdf
. It must not default to .ai
.
The only content type that should default to a suffix of .ai
, should be application/vnd.adobe.illustrator
.
The format of the Licence.md file, while purporting to be MIT, contains preamble copyright that makes the actual license distinct from MIT. Indeed, many automated license tools do not recognize this license as MIT due to the non-standard preamble.
Would you be amenable to using the standard MIT License text for this file?
As one example, licensee (and by extension, GitHub, which leverages licensee), does not consider this licensed under MIT.
https://api.github.com/repos/mime-types/mime-types-data/license
license: {
key: "other",
name: "Other",
spdx_id: "NOASSERTION",
url: null,
node_id: "MDc6TGljZW5zZTA="
}
Corresponding license response for rails, which is recognized as MIT: https://api.github.com/repos/rails/rails/license
license: {
key: "mit",
name: "MIT License",
spdx_id: "MIT",
url: "https://api.github.com/licenses/mit",
node_id: "MDc6TGljZW5zZTEz"
}
I would be willing to open the PR for this, if it would be considered. Thanks!
#53 reworks the handling of the provisional media type registry in order to avoid a duplicate error on application/netcdf
(see #50).
However, since types/provisional-standard-types.yaml
has been removed, there is no way to see if types were removed from the provisional registry because the standard or the provisional registration was withdrawn. (The current handling should properly handle upgrades from provisional to registration.)
In order to keep the data clean, we need to resolve this.
Hello! Firstly, thanks for this project. It makes my project much easier to maintain, and for that I'm always grateful!
I would like my plugin to support avif images, but mime-types
doesn't know about it yet. Can y'all teach it? It's in the IANA list.
Is this dependency really required ? There is a lot of gems depending on mime-types that are impacted by this new constraint.
> MIME::Types.of("js").map(&:obsolete?)
=> [true, true, true]
Was this the case before? I don't think so?
It looks like something changed between 3.2018.0812 and 3.2016.0521 (perhaps the data and tooling update from 10 days ago) which changed the priority and contents of mime types for JavaScript files.
Previously in the 3.2016.0521 release, .js
files were identified as application/javascript
through mime-types
:
>> MIME::Types.type_for('test.js')
=> [#<MIME::Type: application/javascript>, #<MIME::Type: text/javascript>, #<MIME::Type: application/x-javascript>]
In the subsequent 3.2018.0812 release, they're being identified as application/ecmascript
:
>> MIME::Types.type_for('test.js')
=> [#<MIME::Type: application/ecmascript>, #<MIME::Type: application/javascript>, #<MIME::Type: text/ecmascript>, #<MIME::Type: text/javascript>, #<MIME::Type: application/x-javascript>]
Was this intentional? Or am I doing something wrong?
This gem lists .ai
files as application/postscript
, but Adobe Illustrator hasn't used EPS as its native format since 2000 or so. Version 9 and onwards save artwork as ordinary PDFs with editor-specific metadata included.
See github-linguist/linguist#4572 for a related discussion.
/cc @lildude
Hello @halostatue,
First of all, thanks for maintaining this project.
I was wondering if you already evaluated including mime types for RAW images. I cannot find any official documentation about this topic, but a Stack Overflow question seems to indicate that they do exist (there is a broken link in the chosen answer, it should have linked to this XML file).
Would you accept a PR which adds those mime types?
Thanks, Alessio
audio/x-wav
exists, but audio/wav
is missing. WAV has been standardized for a long time—can we add it?
Is there a reason the application/csv
MIME type is not included with extension csv
?
file -b --mime some_file.csv
returns this MIME type for some files on Ubuntu 20.04.
Assume it's happening because of the alphabetical order, but anyway I guess "video/mp4" should be preferred.
Also shouldn't file.m4v also return "video/x-m4v" instead of "video/vnd.objectvideo" (which according to IANA is for .mp4 also) as it's not being standardized?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.