Skip to content
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

Closed
oparoz opened this issue Apr 2, 2015 · 8 comments · Fixed by #17481
Closed

Move mimetypes.list.php to a text file in /config #15384

oparoz opened this issue Apr 2, 2015 · 8 comments · Fixed by #17481

Comments

@oparoz
Copy link
Contributor

oparoz commented Apr 2, 2015

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?

@RobinMcCorkell
Copy link
Member

👍 Mimetype/file extension associations are data, not code, so shouldn't be stored in the code.

@flamenco108
Copy link

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?

@RobinMcCorkell
Copy link
Member

@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.

@DeepDiver1975 DeepDiver1975 added this to the 8.2-next milestone May 29, 2015
@DeepDiver1975
Copy link
Member

We might want to use this as resource - http://www.webmaster-toolkit.com/mime-types.shtml

@oparoz
Copy link
Contributor Author

oparoz commented Jun 5, 2015

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.

@rullzer
Copy link
Contributor

rullzer commented Jul 8, 2015

Let me have a look at this after the big mimetypealias.json merge :)

@rullzer
Copy link
Contributor

rullzer commented Jul 8, 2015

See #17481

@rullzer
Copy link
Contributor

rullzer commented Jul 17, 2015

Fixed in #17481

@rullzer rullzer closed this as completed Jul 17, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants