fix(legacy): fail when uploading wma files (#2172)

Fix #1449
This commit is contained in:
Jonas L 2022-09-21 14:04:56 +02:00 committed by GitHub
parent 5cd2c5263e
commit 060fb9d24b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class PageLayoutInitPlugin extends Zend_Controller_Plugin_Abstract
// Dropzone also accept file extensions and doesn't correctly extract certain mimetypes (eg. FLAC - try it),
// so we append the file extensions to the list of mimetypes and that makes it work.
$mimeTypes = FileDataHelper::getAudioMimeTypeArray();
$mimeTypes = FileDataHelper::getUploadAudioMimeTypeArray();
$fileExtensions = array_values($mimeTypes);
foreach ($fileExtensions as &$extension) {
$extension = '.' . $extension;