thinkphp6上传文件问题

浏览:5547 发布日期:2019/06/29 分类:ThinkPHP6专区 关键字: thinkphp6 文件上传
            $file = request()->file('file');
            $savename = \think\facade\Filesystem::putFile( 'post', $file);
            return json(['code' => 0,'data' => ['src' => setting('site_url').$savename]]);
运行时报错:
[ error ] [0]方法参数错误:app[E:\WWWROOT\vendor\topthink\framework\src\think\Container.php:438]
最佳答案
评论( 相关
后面还有条评论,点击查看>>