mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Upload.php
This commit is contained in:
parent
572e646985
commit
bc8d312f22
@ -147,8 +147,8 @@ class Upload extends Controller
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return $this->request->file('file');
|
return $this->request->file('file');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $exception) {
|
||||||
$this->error(lang($e->getMessage()));
|
$this->error(lang($exception->getMessage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user