From 2ca8da062cc58f5ec778b560dc9e65ada9306166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20M=C3=B6ke?= Date: Mon, 3 Jun 2019 16:17:08 +0200 Subject: [PATCH] Fixes #17328: Added mime aliases for BMP and SVG files --- framework/CHANGELOG.md | 1 + framework/helpers/mimeAliases.php | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 57ef447..ff459f1 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -6,6 +6,7 @@ Yii Framework 2 Change Log - Bug #16509: Fixed console command help text wordwrap for multi-byte strings (alexkart) - Bug #17299: Fixed adding of input error class in `\yii\widgets\ActiveField::widget` (alexkart) +- Bug #17328: Added mime aliases for BMP and SVG files (cmoeke) 2.0.19 May 21, 2019 diff --git a/framework/helpers/mimeAliases.php b/framework/helpers/mimeAliases.php index 89a9797..97abc32 100644 --- a/framework/helpers/mimeAliases.php +++ b/framework/helpers/mimeAliases.php @@ -6,4 +6,15 @@ */ return [ 'text/xml' => 'application/xml', + 'image/svg' => 'image/svg+xml', + 'image/x-bmp' => 'image/bmp', + 'image/x-bitmap' => 'image/bmp', + 'image/x-xbitmap' => 'image/bmp', + 'image/x-win-bitmap' => 'image/bmp', + 'image/x-windows-bmp' => 'image/bmp', + 'image/ms-bmp' => 'image/bmp', + 'image/x-ms-bmp' => 'image/bmp', + 'application/bmp' => 'image/bmp', + 'application/x-bmp' => 'image/bmp', + 'application/x-win-bitmap' => 'image/bmp', ];