mirror of https://gitee.com/karson/fastadmin.git
Revert "update application/common/library/Upload.php."
This reverts commit 7d6d3a2733.
pull/458/head
parent
7d6d3a2733
commit
afbb5a0a5d
|
|
@ -305,7 +305,7 @@ class Upload
|
||||||
|
|
||||||
$attachment = $this->upload();
|
$attachment = $this->upload();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
is_file($uploadPath) && @unlink($uploadPath);
|
@unlink($destFile);
|
||||||
throw new UploadException($e->getMessage());
|
throw new UploadException($e->getMessage());
|
||||||
}
|
}
|
||||||
return $attachment;
|
return $attachment;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue