diff --git a/app/common/library/Upload.php b/app/common/library/Upload.php index 1d2a429237667f034fed437c2fc77788c6f53454..dff7cc1e40c53f7bcc5ff45e6ed12118341881cb 100644 --- a/app/common/library/Upload.php +++ b/app/common/library/Upload.php @@ -278,7 +278,7 @@ class Upload try { $this->getFileSavePath($file); // 分片上传使用ID作为文件名 - $this->resource = $this->filepath . DS . sha1($params['chunkId']) . '.' . $fileExt; + $this->resource = public_path().$this->filepath . DS . sha1($params['chunkId']) . '.' . $fileExt; $file->move($this->resource); } catch (\Exception $e) { Event::emit('uploadExceptionDelete', [