update app/common/library/Upload.php.

273行代码 调整为$this->resource = public_path().$this->filepath . DS . sha1($params['chunkId']) . '.' . $fileExt;

不然大文件上传之后会跑到具体的磁盘目录下。

Signed-off-by: user_5037913 <simonzw@yeah.net>
This commit is contained in:
开源社区金三月半
2023-04-12 04:08:33 +00:00
committed by Gitee
parent e742e40001
commit adee8accbe

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