$file = $_FILES['file'];
拿到了前端上传过来的视频文件,我直接返回显示下面的信息:
我直接在后台用new Upload($file);上传$file文件,提示
rgument 1 passed to app\common\library\Upload::__construct() must be an instance of think\file\UploadedFile or null, array given, called in E:\robot\app\admin\controller\robot\Record.php on line 98
应该将.tmp临时文件保存并且重新命名为.mp4