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)
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)
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