-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-69062: Backport of MAGETWO-53010 for Magento 2.1: Saving a cu…
…stom transactional email logo, failed. #9590
- Loading branch information
Showing
6 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Copyright © 2013-2017 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']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters