We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请教一下。 我从input表单里取到了多个上传文件 $files = $request->file('img');
打印$files 的话是个数组
array:2 [▼ 0 => UploadedFile {#489 } 1 => UploadedFile {#490 } ] 想获取到里面的每一个上传文件 用了foreach循环
foreach ($files as $file){ dd($file); } 取不到所有上传文件。
The text was updated successfully, but these errors were encountered:
@naibacaixiang 循环里面 dd 一次就 die 掉了,所以不显示全部文件。
Sorry, something went wrong.
非常感谢,已解决。
No branches or pull requests
请教一下。 我从input表单里取到了多个上传文件
$files = $request->file('img');
打印$files 的话是个数组
array:2 [▼
0 => UploadedFile {#489 }
1 => UploadedFile {#490 }
]
想获取到里面的每一个上传文件
用了foreach循环
foreach ($files as $file){
dd($file);
}
取不到所有上传文件。
The text was updated successfully, but these errors were encountered: