diff --git a/Uploader.php b/Uploader.php index 467d2d5..a5af6d9 100644 --- a/Uploader.php +++ b/Uploader.php @@ -1,6 +1,7 @@ fullName; - - if (substr($fullname, 0, 1) != '/') { - $fullname = '/' . $fullname; - } - - return $this->config['pathRoot'] . $fullname; + return Yii::getAlias($this->fullName); } /** @@ -338,4 +333,4 @@ public function getFileInfo() "size" => $this->fileSize ); } -} \ No newline at end of file +}