Skip to content

Commit

Permalink
fix(legacy): allow uploading opus files (#2804)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Dec 18, 2023
1 parent 976b70e commit 1206252
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions legacy/application/common/FileDataHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public static function getUploadAudioMimeTypeArray()
$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;
}

Expand Down

0 comments on commit 1206252

Please sign in to comment.