2016-07-14 79 views
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输入没有发送到服务器。 有什么想法?

+0

向我们展示您的控制器中的方法以及转储此数据的位置。也许这是因为你的文件有一些错误? –

+0

检查您的服务器的php.ini和htaccess upload_max_filesize和post_max_size。如果文件较大,则会收到类似报告的错误。 –

回答

0

你得到的错误是:

UPLOAD_ERR_PARTIAL 勇气:3;文件部分上传。

尝试寻找到这一点:

的.htaccess

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 

本地的php.ini创建或添加到当前.htaccess文件php.ini文件的位置

+0

试过但没有工作 –