Comments (9)
@thany What exactly would this be used for?
from mime-db.
@Fishrock123 I can see the use-case, but the real question is, where would this information come from? Is there a list somewhere?
from mime-db.
Is there a list somewhere?
Is there ever?
There isn't a conclusive list for anything except the mime type themselves afaik.
This, like compression, would probably take research by hand to be conclusive.
from mime-db.
Windows has PerceivedType built into its registry for most (every?) registered filetype/mimetype. That might be a start.
Is there a list somewhere?
This could become the list :)
from mime-db.
Oh hmm, I'll leave that to @dougwilson since he does more windows stuff.
from mime-db.
we could make this a separate lib. seems like most of the types can be inferred from the first part of the mime type. then you'll have look up for the other types like "document" and "gamemedia". could probably just be rules like regexps
from mime-db.
yea, i think this seems like a different lib, but idk yet. i'll look into what that windows api is doing to get this data to say for sure.
from mime-db.
going to put this as "maybe in v1+"
from mime-db.
So I looked really hard into this, and though it sounds nice to have, the way it actually works in Windows is part of the type registration (which lives in the registry). Applications can alter these types at will and there is pretty much no central place for these things to exist. It basically seems like making this would be completely hand-rolled, which seems like a large task.
It is certainly possible that we can write a script that will simply walk the registry of the current user and store all those perceived types, though it will still end up being a manually-curated list of them :)
from mime-db.
Related Issues (20)
- Newline-delimited JSON HOT 3
- Add extensions for audio/amr type
- Add jsm extension for application/javascript HOT 3
- 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
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.