fix(legacy): allow uploading opus files (#2804)
This commit is contained in:
parent
e7a678e91f
commit
f252a16637
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue