1
我有这种形式表单输入不发送?
{!! Form::open(['url' => 'groups', 'role' => 'form','files' => true ,'data-toggle' => 'validator']) !!}
<input type="file" id="group-picture" name="avatar" class="modern-uplaod-input"/>
<input type="text" name="team_name" class="form-control"/>
<button type="submit" class="btn btn-warning">Create</button>
{!! Form::close() !!}
当我尝试上传的图片,并请求文件阵列是
avatar = {
test => false,
originalName => 587756.jpg,
mimeType => application/octet-stream,
size => 0,
error => 3,
*SplFileInfo*pathName => "",
*SplFileInfo*fileName => ""
}
和team_name
输入没有发送到服务器。 有什么想法?
向我们展示您的控制器中的方法以及转储此数据的位置。也许这是因为你的文件有一些错误? –
检查您的服务器的php.ini和htaccess upload_max_filesize和post_max_size。如果文件较大,则会收到类似报告的错误。 –