fix(legacy): allow uploading opus files (#2804)

This commit is contained in:
Jonas L 2023-12-18 20:32:49 +01:00 committed by GitHub
parent 976b70ed32
commit 1206252faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ class FileDataHelper
$mimes = self::getAudioMimeTypeArray(); $mimes = self::getAudioMimeTypeArray();
unset($mimes['audio/x-ms-wma']); 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; return $mimes;
} }