application/manage/controller/Upload.php
public function wang(Request $request)
    {
        // 文件
        $upload_file = isset($_FILES['upload_file']) ? $_FILES['upload_file'] : null;
        if (empty($upload_file)) {
            return 'error|上传文件不存在';
        }
        
        // 额外配置
        $upload_option = [
            'width' => 1920,
            'height' => 1080
        ];
        
        // 上传文件
        $upload_driver = FileLogic::instance()->getUploadDriver();
        $res = $upload_driver->upload($upload_file, '', $upload_option);
        if ($res['code'] == 1) {
            return $res['data']['url'];
        } else {
            return 'error|' . $res['msg'];
        }
    }
public function wang(Request $request)
    {
        // 文件
        $upload_file = isset($_FILES['upload_file']) ? $_FILES['upload_file'] : null;
        if (empty($upload_file)) {
            return 'error|上传文件不存在';
        }
        
        // 额外配置
        $upload_option = [
            'width' => 1920,
            'height' => 1080
        ];
        
        // 上传文件
        $upload_driver = FileLogic::instance()->getUploadDriver();
        $res = $upload_driver->upload($upload_file, '', $upload_option);
        if ($res['code'] == 1) {
            return $res['data']['url'];
        } else {
            return 'error|' . $res['msg'];
        }
    }
wangEditor

@param Request $request
@return string