Skip to content

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

Closed

Description

@oparoz

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?

Activity

  1. RobinMcCorkell commented on Apr 2, 2015

    @RobinMcCorkell
    Contributor

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

  2. flamenco108 commented on May 29, 2015

    @flamenco108

    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?

  3. RobinMcCorkell commented on May 29, 2015

    @RobinMcCorkell
    Contributor

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

  4. added this to the milestone on May 29, 2015
  5. oparoz commented on Jun 5, 2015

    @oparoz
    ContributorAuthor

    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.

  6. rullzer commented on Jul 8, 2015

    @rullzer
    Contributor

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

  7. rullzer commented on Jul 8, 2015

    @rullzer
    Contributor

    See #17481

  8. rullzer commented on Jul 17, 2015

    @rullzer
    Contributor

    Fixed in #17481

  9. locked as resolved and limited conversation to collaborators on Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions