mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
34 lines
672 B
PHP
34 lines
672 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Email\Model\Design\Backend;
|
|
|
|
use Magento\Theme\Model\Design\Backend\Logo as DesignLogo;
|
|
|
|
class Logo extends DesignLogo
|
|
{
|
|
/**
|
|
* The tail part of directory path for uploading
|
|
*/
|
|
const UPLOAD_DIR = 'email/logo';
|
|
|
|
/**
|
|
* Upload max file size in kilobytes
|
|
*
|
|
* @var int
|
|
*/
|
|
protected $maxFileSize = 2048;
|
|
|
|
/**
|
|
* Getter for allowed extensions of uploaded files
|
|
*
|
|
* @return string[]
|
|
*/
|
|
public function getAllowedExtensions()
|
|
{
|
|
return ['jpg', 'jpeg', 'gif', 'png'];
|
|
}
|
|
}
|