I would like to ask, the picture is uploaded successfully, but there is no picture in the corresponding folder in the background. What is the reason? (Deployed to server)
槑槑
槑槑 2020-10-19 14:24:41
0
2
1534

Excuse me, the picture was uploaded successfully, but there is no picture in the corresponding folder in the background. What is the reason? (Deployed to server)

槑槑
槑槑

reply all(2)
槑槑

public function upload(){    $file = request()->file('file');    if ($file) {        $info = $file->move('/public/upload/weixin');        if ($info) {            $file = str_replace('\\', '/', $info->getSaveName());            $res = ['errCode'=>0,'errMsg'=>'图片上传成功','file'=>$file];            return json($res);        }else {            return $this->errorJson(2, $file->getError());        }    }}

槑槑

This is a code snippet

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!