-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Move mimetypes.list.php to a text file in /config #15384
Comments
👍 Mimetype/file extension associations are data, not code, so shouldn't be stored in the code. |
I appologize for interruption, but I have fount closed issue, where were request to recognize filetypes by mime, not extension. Here I see the reasonable request to make easier to configure filetypes. This is also my pain: I would like to edit txt2tags files by ownCloud text editor, but textfile with .t2t extension is not recognized as a text file (I'm not talking about code coloring). How to change the ownCloud to make it possible to edit text files with other extensions? |
@flamenco108 At the moment, your only option is to edit mimetypes.list.php with your desired changes, then keep that file up to date every time you update your ownCloud installation. If/when the feature here gets implemented, you will have a file in /config to edit instead, which should preserve your changes across updates. |
We might want to use this as resource - http://www.webmaster-toolkit.com/mime-types.shtml |
I've had a look and it's missing quite a few ones we're already using, but I guess it could be merged with what we have. |
Let me have a look at this after the big mimetypealias.json merge :) |
See #17481 |
Fixed in #17481 |
It can take between 1 to 6+ months for a user to have access to a new media type, simply because
core
has to be hacked for that.I propose we move the list to a simple text or php file in the config folder so that users can upgrade the list as they see fit.
The cron job can keep the cache updated and simple media type migrations could be performed on the fly.
Is there some big invisible hurdle to doing it this way?
The text was updated successfully, but these errors were encountered: