Add .aac mime type mapping

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

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

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

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