我有这个表格
{!! 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
输入未发送到服务器。
有任何想法吗?
答案 0 :(得分:0)
您收到的错误是:
UPLOAD_ERR_PARTIAL 勇气:3;文件已部分上传。
试着调查一下:
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200
phpSuExec的方法在文档根目录中创建本地php.ini
upload_max_filesize=100M
post_max_size=105M
max_execution_time=600
max_input_time=600
创建或添加当前.htaccess文件php.ini文件的位置