mirror of https://github.com/nextcloud/server
Add .aac mime type mapping
Signed-off-by: Unpublished <Unpublished@users.noreply.github.com>
This commit is contained in:
parent
250084f8b9
commit
4af1c5cb33
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"],
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue