diff --git a/modules/cms/widgets/AssetList.php b/modules/cms/widgets/AssetList.php index 5cc92e1314..39a9172c3b 100644 --- a/modules/cms/widgets/AssetList.php +++ b/modules/cms/widgets/AssetList.php @@ -1,22 +1,25 @@ -getRealPath(), Svg::extract($uploadedFile->getRealPath())); + } + /* * Accept the uploaded file */ - $uploadedFile = $uploadedFile->move($this->getCurrentPath(), $uploadedFile->getClientOriginalName()); + $uploadedFile = $uploadedFile->move($this->getCurrentPath(), $fileName); File::chmod($uploadedFile->getRealPath());