mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
feat(mimetypes): Added musicxml mimetypes
This commit is contained in:
parent
652b0cc9ab
commit
68d45006cd
2 changed files with 20 additions and 0 deletions
|
|
@ -337,6 +337,20 @@ class RepairMimeTypes implements IRepairStep {
|
|||
return $this->updateMimetypes($updatedMimetypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
* @since 32.0.0
|
||||
*/
|
||||
private function introduceMusicxmlType(): IResult|int|null {
|
||||
'mxl' => 'application/vnd.recordare.musicxml',
|
||||
'musicxml' => 'application/vnd.recordare.musicxml+xml',
|
||||
];
|
||||
|
||||
return $this->updateMimetypes($updatedMimetypes);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if there are any migrations available
|
||||
*
|
||||
|
|
@ -447,6 +461,10 @@ class RepairMimeTypes implements IRepairStep {
|
|||
$out->info('Fixed zst mime type');
|
||||
}
|
||||
|
||||
if (version_compare($mimeTypeVersion, '32.0.0.0', '<') && $this->introduceMusicxmlType()) {
|
||||
$out->info('Fixed musicxml mime type');
|
||||
}
|
||||
|
||||
if (!$this->dryRun) {
|
||||
$this->appConfig->setValueString('files', 'mimetype_version', $serverVersion);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,6 +129,8 @@
|
|||
"msi": ["application/x-msi"],
|
||||
"mt2s": ["video/MP2T"],
|
||||
"mts": ["video/MP2T"],
|
||||
"musicxml": ["application/vnd.recordare.musicxml+xml"],
|
||||
"mxl": ["application/vnd.recordare.musicxml"],
|
||||
"nef": ["image/x-dcraw"],
|
||||
"nfo": ["text/x-nfo"],
|
||||
"numbers": ["application/x-iwork-numbers-sffnumbers"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue