fix:修复分片上传bug

This commit is contained in:
Ying
2023-04-25 20:13:47 +08:00

View File

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