$file=request()->file("file")[0]
$fileInfo=$file->move(目录A);
//这里是第一个文件的上传方法,移到目录a;
$file2=request()->file("file")[1]
这里会报错SplFileob
ject::__construct(/tmp/phpY4xINu): failed to open stream: No such file or directory。dump(request->file())显示为null。这是为什么。
我是想实现一个上传两个文件,然后这两个文件经过判断,移入到不同的两个文件夹。