Revert "update application/common/library/Upload.php."

This reverts commit 7d6d3a2733.
pull/458/head
渲染 2024-01-20 05:25:08 +00:00 committed by Gitee
parent 7d6d3a2733
commit afbb5a0a5d
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) {
is_file($uploadPath) && @unlink($uploadPath);
@unlink($destFile);
throw new UploadException($e->getMessage());
}
return $attachment;