Skip to content

Conversation

@pReya
Copy link
Contributor

@pReya pReya commented Aug 7, 2025

Description

Currently all .webm files are inferred to be video files. However, .webm is both an audio AND a video format. In fact it's the default format for most browsers when recording audio-only input via the MediaRecorder API.

When I define my file template like this:

title: Audioaufnahme

accept: audio/webm, audio/ogg, audio/mpeg, audio/wav
fields:
  title:
    label: Titel
    type: text
  created:
    label: Erstellt am
    type: date
    display: DD.MM.YYYY
    time: true
    disabled: true
    step:
      size: 1
      unit: second

I cannot upload an audio file with .webm ending, as Kirby will always complain about the wrong mime type, because it infers video/webm from the .webm file extension.

@distantnative distantnative added this to the 5.1.0 milestone Aug 7, 2025
@bastianallgeier bastianallgeier changed the base branch from main to develop-patch August 7, 2025 14:57
@bastianallgeier bastianallgeier modified the milestones: 5.1.0, 5.0.4 Aug 7, 2025
@bastianallgeier bastianallgeier merged commit e563631 into getkirby:develop-patch Aug 7, 2025
9 checks passed
@pReya pReya deleted the patch-1 branch August 7, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants