我越来越:笨3.1.2内部服务器错误上传
500 Internal server error
的图片上传至AJAX。当它到达时:
$this->upload->do_upload('filename');
它产生这个错误。我搜索每个地方,但没有找到解决方案。
我的代码是:
foreach($_FILES as $key_img=>$row_img){
if(!empty($row_img['name'])){
$image_path = './assets/images/';
$config['upload_path'] = $image_path;
$config['allowed_types'] = "gif|jpg|png";
$config['max_size'] = '1000';
$this->load->library('upload', $config);
if (!$this->upload->do_upload($key_img))
{
$upload_error = array('error' => $this->upload->display_errors());
}
else
{
$data = array('upload_data' => $this->upload->data());
$userfile = $data['upload_data']['file_name'];
}
}
}
在控制台报告错误的位置上网络选项卡没有反应。
您的日志中是否有任何内容? –
没有我的cPanel错误日志为空。 –
是否打开了错误报告和调试? –