forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-53010: [Email Logo] Saving a custom transactional email logo,…
… failed.
- Loading branch information
Oleksandr Karpenko
committed
Jun 7, 2016
1 parent
3fbefa4
commit 23103c0
Showing
5 changed files
with
39 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 © 2016 Magento. 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