Php Laravel-上载多个文件
我正在搜索一些关于如何上载多个文件的教程,例如: 有一个Php Laravel-上载多个文件,php,forms,file-upload,laravel,Php,Forms,File Upload,Laravel,我正在搜索一些关于如何上载多个文件的教程,例如: 有一个{{Form::file('images[]',['multiple'=>true])}行应该从输入中选择多个文件。但问题是我只能选择一个文件,不能选择更多。我该怎么做才能上传多个文件 我认为: {{ Form::open(['action' => 'AdminController@postProject', 'files' => true, 'enctype' => 'multipart/form-data', 'cl
{{Form::file('images[]',['multiple'=>true])}
行应该从输入中选择多个文件。但问题是我只能选择一个文件,不能选择更多。我该怎么做才能上传多个文件
我认为:
{{ Form::open(['action' => 'AdminController@postProject', 'files' => true, 'enctype' => 'multipart/form-data', 'class' => 'projectform']) }}
{{ Form::file('images[]', ['multiple' => 'multiple']) }}
{{ Form::close() }}
这是HTML输出:
<input multiple="multiple" name="images[]" type="file">
我刚刚发现,我可以按住SHIFT键选择多个文件,但我希望能够逐个单独选择文件。提示:可能对您有帮助
<form action="demo_form.asp">
Select images: <input type="file" name="img" multiple>
<input type="submit">
</form>
选择图像:
如果您的表单内容类型
设置为多部分/表单数据
,您可以向我们显示表单的html输出吗?