mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #35176 from bjornfor/add-asciidoc-mime-type
Add text/asciidoc mimetype
This commit is contained in:
commit
7ac2d310a7
2 changed files with 15 additions and 0 deletions
|
|
@ -106,6 +106,15 @@ class RepairMimeTypes implements IRepairStep {
|
|||
return $count;
|
||||
}
|
||||
|
||||
private function introduceAsciidocType() {
|
||||
$updatedMimetypes = [
|
||||
'adoc' => 'text/asciidoc',
|
||||
'asciidoc' => 'text/asciidoc',
|
||||
];
|
||||
|
||||
return $this->updateMimetypes($updatedMimetypes);
|
||||
}
|
||||
|
||||
private function introduceImageTypes() {
|
||||
$updatedMimetypes = [
|
||||
'jp2' => 'image/jp2',
|
||||
|
|
@ -273,5 +282,9 @@ class RepairMimeTypes implements IRepairStep {
|
|||
if (version_compare($ocVersionFromBeforeUpdate, '25.0.0.2', '<') && $this->introduceOnlyofficeFormType()) {
|
||||
$out->info('Fixed ONLYOFFICE Forms OpenXML mime types');
|
||||
}
|
||||
|
||||
if (version_compare($ocVersionFromBeforeUpdate, '26.0.0.1', '<') && $this->introduceAsciidocType()) {
|
||||
$out->info('Fixed AsciiDoc mime types');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,9 +10,11 @@
|
|||
"3gp": ["video/3gpp"],
|
||||
"7z": ["application/x-7z-compressed"],
|
||||
"accdb": ["application/msaccess"],
|
||||
"adoc": ["text/asciidoc", "text/plain"],
|
||||
"ai": ["application/illustrator"],
|
||||
"apk": ["application/vnd.android.package-archive"],
|
||||
"arw": ["image/x-dcraw"],
|
||||
"asciidoc": ["text/asciidoc", "text/plain"],
|
||||
"avi": ["video/x-msvideo"],
|
||||
"bash": ["text/x-shellscript"],
|
||||
"bat": ["application/x-msdos-program"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue