From f252a16637e113ceb1dd340fb7aad31af9c23ff0 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Mon, 18 Dec 2023 20:32:49 +0100 Subject: [PATCH] fix(legacy): allow uploading opus files (#2804) --- legacy/application/common/FileDataHelper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/application/common/FileDataHelper.php b/legacy/application/common/FileDataHelper.php index ae745f0f8..8d914176c 100644 --- a/legacy/application/common/FileDataHelper.php +++ b/legacy/application/common/FileDataHelper.php @@ -32,6 +32,10 @@ class FileDataHelper $mimes = self::getAudioMimeTypeArray(); unset($mimes['audio/x-ms-wma']); + // audio/opus is not a real mime type, we only set it here to allow uploading + // .opus files + $mimes['audio/opus'] = 'opus'; + return $mimes; }