!34 update app/common/library/Upload.php.

Merge pull request !34 from 开源社区金三月半/N/A
This commit is contained in:
meystack
2023-04-12 04:16:18 +00:00
committed by Gitee

View File

@@ -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', [