Skip to content

Use mimetypes as identifiers #536

@Nova38

Description

@Nova38

Migrate to using mimetypes as identifiers instead of all-caps Litteral str

Describe the solution you'd like

Transition away from using raw strings as the filetype identifiers. This would standardize what plugins should expect to receive or produces.

  1. have the shape of 'type/subtype' ie application/java-archive

The one area that has been identified as a concern is being handling ambiguity and not having different file types map to the same mimetypes. This would need a little work but could be implemented by exposing some utility functions to the plugins. Additionally for compatiblity with older custom plugins their could be a centralized map of the older used identifies to the new equivalent mimetypes

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions