diff --git a/UPGRADE-5.2.md b/UPGRADE-5.2.md index 3505180743e..dd9d407120f 100644 --- a/UPGRADE-5.2.md +++ b/UPGRADE-5.2.md @@ -11,6 +11,7 @@ This changelog references changes done in Shopware 5.2 patch versions. * Added guetzli media optimizer * Renamed `Shopware.model.AttributeConfig` to `Shopware.apps.Base.model.AttributeConfig` * Added new event `Shopware_Plugins_HttpCache_ContextCookieValue` to modify HttpCache Context-Cookie. +* Added support for uploading media with ftps in Rest-API # 5.2.26 diff --git a/engine/Shopware/Components/Api/Resource/Media.php b/engine/Shopware/Components/Api/Resource/Media.php index 876b967b769..6625eae9a7b 100644 --- a/engine/Shopware/Components/Api/Resource/Media.php +++ b/engine/Shopware/Components/Api/Resource/Media.php @@ -43,7 +43,7 @@ class Media extends Resource const FILENAME_LENGTH = 200; /** - * @return \Shopware\Models\Category\Repository + * @return \Shopware\Models\Media\Repository */ public function getRepository() { @@ -324,6 +324,7 @@ public function load($url, $baseFilename = null) $urlArray['path'] = explode('/', $urlArray['path']); switch ($urlArray['scheme']) { case 'ftp': + case 'ftps': case 'http': case 'https': case 'file':