分块上传错误时,无法删除已经合并的分块文件

Signed-off-by: 渲染 <pay@ktwap.net>
pull/458/head
渲染 2024-01-20 05:26:31 +00:00 committed by Gitee
parent afbb5a0a5d
commit 1c396dc7ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class Upload
$attachment = $this->upload();
} catch (\Exception $e) {
@unlink($destFile);
is_file($uploadPath) && @unlink($uploadPath);
throw new UploadException($e->getMessage());
}
return $attachment;