mirror of https://gitee.com/karson/fastadmin.git
parent
afbb5a0a5d
commit
1c396dc7ee
|
|
@ -305,7 +305,7 @@ class Upload
|
||||||
|
|
||||||
$attachment = $this->upload();
|
$attachment = $this->upload();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
@unlink($destFile);
|
is_file($uploadPath) && @unlink($uploadPath);
|
||||||
throw new UploadException($e->getMessage());
|
throw new UploadException($e->getMessage());
|
||||||
}
|
}
|
||||||
return $attachment;
|
return $attachment;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue