如何在codeigniter中使用jQueryAjax更新表单数据而不再次上传图像?
视图: 第二个错误:如何在codeigniter中使用jQueryAjax更新表单数据而不再次上传图像?,jquery,codeigniter,Jquery,Codeigniter,视图: 第二个错误: Message: Undefined index: company_logo 那么,我如何解决这个问题呢?请帮帮我 感谢您首先删除if部分中的 Message: count(): Parameter must be an array or an object that implements Countable 并删除其他部分中的图像上载代码。如果未添加图像,是否打印($files)?你得到了什么?我得到了Array()@SanjitBhardwajtry count($
Message: Undefined index: company_logo
那么,我如何解决这个问题呢?请帮帮我
感谢您首先删除if部分中的
Message: count(): Parameter must be an array or an object that implements Countable
并删除其他部分中的图像上载代码。如果未添加图像,是否打印($files)?你得到了什么?我得到了
Array()
@SanjitBhardwajtry count($files)>0而不是($files!='')相同的错误消息:未定义索引:company_logo
@SanjitBhardwajremove整个图像保存代码在其他部分,它没有使用
Message: Undefined index: company_logo
Message: count(): Parameter must be an array or an object that implements Countable
if($files!='') // put here if(count($files) > 0)