Skip to content

Common MIME types are not recognized #135

@clnsmth

Description

@clnsmth

EMLassemblyline assign a value to /element(*,PhysicalType)/dataFormat/externallyDefinedFormat/formatName based on mime::guess_type() (see code). This function maps the data entity's file extension to a MIME type. However, this map is missing several common file extensions (e.g. .bz2 = application/x-bzip2) thus returning a value of "Unknown".

A potential solution here is to extend the list of MIME types recognized by mime::guess_type() using the mime_extra parameter, which can reference a curated list of other MIME types.

However, do note:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions