Add .aac mime type mapping

Signed-off-by: Unpublished <Unpublished@users.noreply.github.com>
This commit is contained in:
Unpublished 2024-01-01 18:56:07 +01:00 committed by Andy Scherzinger
parent 250084f8b9
commit 4af1c5cb33
3 changed files with 14 additions and 1 deletions

View File

@ -246,6 +246,14 @@ class RepairMimeTypes implements IRepairStep {
return $this->updateMimetypes($updatedMimetypes);
}
private function introduceAacAudioType() {
$updatedMimetypes = [
'aac' => 'audio/aac',
];
return $this->updateMimetypes($updatedMimetypes);
}
/**
* Fix mime types
*/
@ -310,5 +318,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '29.0.0.2', '<') && $this->introduceEmlAndMsgFormatType()) {
$out->info('Fixed eml and msg mime type');
}
if (version_compare($ocVersionFromBeforeUpdate, '29.0.0.6', '<') && $this->introduceAacAudioType()) {
$out->info('Fixed aac mime type');
}
}
}

View File

@ -9,6 +9,7 @@
"3gp": ["video/3gpp"],
"7z": ["application/x-7z-compressed"],
"aac": ["audio/aac"],
"accdb": ["application/msaccess"],
"adoc": ["text/asciidoc", "text/plain"],
"ai": ["application/illustrator"],

View File

@ -30,7 +30,7 @@
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patch level
// when updating major/minor version number.
$OC_Version = [29, 0, 0, 5];
$OC_Version = [29, 0, 0, 6];
// The human-readable string
$OC_VersionString = '29.0.0 dev';