mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !458 from 渲染/develop
commit
9639c1a6cf
|
|
@ -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