|
|
@@ -182,7 +182,7 @@ class UploadForm extends Model {
|
|
|
$fileName = Tool::generateId(false);
|
|
|
// $fileName = $this->file->baseName;
|
|
|
// 保存在本地
|
|
|
- $localPath = \Yii::$app->localUpload->locate . $fileName . '.' . $this->file->extension;
|
|
|
+ $localPath = \Yii::$app->params['localUpload']['dns'] . $fileName . '.' . $this->file->extension;
|
|
|
// $localPath = '/ng-stage/Volumes/HDD/workshop/old/ar.upload.ming/files/' . $fileName . '.' . $this->file->extension;
|
|
|
if (!$this->file->saveAs($localPath)) {
|
|
|
throw new Exception('Failed');
|