feat(mimetypes): Added musicxml mimetypes

pull/51703/head
Benjamin Giesinger 2025-03-25 18:15:26 +07:00
parent 652b0cc9ab
commit 68d45006cd
No known key found for this signature in database
GPG Key ID: B6DBD6AE89DC6CF5
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"],