Commit b6226c4c194b510e102ab557a604e5f852f6780f
1 parent
2beb82f0
add path to image
Showing
1 changed file
with
1 additions
and
1 deletions
 
Show diff stats
common/models/Customer.php
| ... | ... | @@ -158,7 +158,7 @@ | 
| 158 | 158 | |
| 159 | 159 | if ($file->saveAs(\Yii::getAlias('@storage/customers/') . $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension)) { | 
| 160 | 160 | $this->image = $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension; | 
| 161 | - $this->file->name = $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;; | |
| 161 | + $this->file->name = '/storage/customers/'.$file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;; | |
| 162 | 162 | return true; | 
| 163 | 163 | } | 
| 164 | 164 | return false; | ... | ... | 
 
