Skip to content

In uploads, claim MIME audio/flac instead of audio/x-flac; audio/vnd.wave instead of audio/x-wav; possibly more #2431

Description

@chrisbobbe

See discussion: #issues > flutter client maps .flac to `audio/x-flac` MIME type @ 💬

package:mime uses deprecated MIME types x-*:

Sounds like we should probably add a workaround in our own code in the Flutter app, where if the stdlib tells us the MIME type is audio/x-flac we translate that to audio/flac instead.

This will become important with #2179 because the server won't accept the x-* variant as cause for rendering inline-audio-player content.

Implementation

Pending the upstream issues linked above, package:mime's docs mention a way to make a custom resolver that overrides the default resolution. We should try that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions