上传图片提示500错误
来源:8-3 商户入驻申请-图片上传处理

wwbbyy
2017-03-31
$file=Request::instance()->file('file');打印$file为NULL
定位到Request中的file函数,
//=============
if ('' === $name) {
file_put_contents('aa.html','cc');
// 获取全部文件
return $array;
} elseif (isset($sub) && isset($array[$name][$sub])) {
file_put_contents('aa.html','aa');
return $array[$name][$sub];
} elseif (isset($array[$name])) {
file_put_contents('aa.html','bb');
return $array[$name];
}
//=====
发现,cc,aa,bb均没有输出,所以返回NULL了
不知是什么原因。求老师指导
5回答
-
singwa
2017-03-31
type="file" 写的是这个吗?看看控制台有米有JS报错。
012017-03-31 -
wwbbyy
提问者
2017-03-31
老师有没看到我的QQ?怎么删除了?
00 -
wwbbyy
提问者
2017-03-31
uploadify的debug
012017-09-24 -
wwbbyy
提问者
2017-03-31
<div class="row cl">
<label class="form-label col-xs-4 col-sm-2">缩略图:</label>
<div class="formControls col-xs-8 col-sm-9">
<input id="file_upload" type="file" multiple="true" >
<img style="display: none" id="upload_org_code_img" src="" width="150" height="150">
<input id="file_upload_image" name="logo" type="hidden" multiple="true" value="">
</div>
</div>00 -
wwbbyy
提问者
2017-03-31
没反现任何JS报错
022017-03-31
相似问题