Skip to content

Commit

Permalink
Merge pull request #470 from ONLYOFFICE/hotfix/downloadas-mime
Browse files Browse the repository at this point in the history
fix: get first mime type from list for download
  • Loading branch information
LinneyS authored Mar 14, 2024
2 parents d04cc91 + 881320c commit 55ffeb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/editorcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ public function download($fileId, $toExtension = null, $template = false) {

$formats = $this->config->formatsSetting();

return new DataDownloadResponse($newData, $newFileName, $formats[$toExtension]["mime"]);
return new DataDownloadResponse($newData, $newFileName, $formats[$toExtension]["mime"][0]);
}

/**
Expand Down

0 comments on commit 55ffeb5

Please sign in to comment.