diff --git a/app/code/Magento/Backend/Model/Config/Backend/Image/Logo.php b/app/code/Magento/Backend/Model/Config/Backend/Image/Logo.php index e937ed2f34688..aa717c2f407c7 100644 --- a/app/code/Magento/Backend/Model/Config/Backend/Image/Logo.php +++ b/app/code/Magento/Backend/Model/Config/Backend/Image/Logo.php @@ -37,4 +37,14 @@ protected function _addWhetherScopeInfo() { return true; } + + /** + * Getter for allowed extensions of uploaded files. + * + * @return string[] + */ + protected function _getAllowedExtensions() + { + return ['jpg', 'jpeg', 'gif', 'png', 'svg']; + } } diff --git a/app/code/Magento/Theme/etc/adminhtml/system.xml b/app/code/Magento/Theme/etc/adminhtml/system.xml index 7d700eb3d0aac..3fe1e5e07fdcc 100644 --- a/app/code/Magento/Theme/etc/adminhtml/system.xml +++ b/app/code/Magento/Theme/etc/adminhtml/system.xml @@ -61,7 +61,7 @@ - Allowed file types:PNG, GIF, JPG, JPEG. + Allowed file types:PNG, GIF, JPG, JPEG, SVG. Magento\Backend\Model\Config\Backend\Image\Logo logo