Skip to content

proposal: mime: add TypeForPath that matches on the full filename #54793

@nikola-jokic

Description

@nikola-jokic

Related to the Issue #52609, the MIME-info database contains the regex that is not expanded by TypeByExtension.
Expanding regex is not suitable in all cases, for example 60:application/x-sharedlib:*.so.[0-9]*.

Instead, a new function can be added to the API that should receive a type based on full filename, instead of expanding every possible filename for that extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions