diff --git a/common/models/Customer.php b/common/models/Customer.php index 0854a27..ed1b5c4 100644 --- a/common/models/Customer.php +++ b/common/models/Customer.php @@ -158,7 +158,7 @@ if ($file->saveAs(\Yii::getAlias('@storage/customers/') . $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension)) { $this->image = $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension; - $this->file->name = $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;; + $this->file->name = '/storage/customers/'.$file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;; return true; } return false; -- libgit2 0.21.4