mirror of https://gitee.com/karson/fastadmin.git
parent
afbb5a0a5d
commit
1c396dc7ee
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue