更新
This commit is contained in:
parent
7ae8d10619
commit
247b6196bc
@ -223,7 +223,7 @@ class Config extends BaseController
|
|||||||
return app('json')->success(['src' => $res]);
|
return app('json')->success(['src' => $res]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$upload = UploadService::create(1);
|
$upload = UploadService::create();
|
||||||
$data = $upload->to('attach')->validate()->move($field);
|
$data = $upload->to('attach')->validate()->move($field);
|
||||||
if ($data === false) {
|
if ($data === false) {
|
||||||
return app('json')->fail($upload->getError());
|
return app('json')->fail($upload->getError());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user