CodeIgniter 3.1.2 图片上传中的内部服务器错误
CodeIgniter 3.1.2 Internal server Error in Image upload
我得到:
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'];
}
}
}
控制台报错,网络选项卡无响应
codeigniter 3.1.2 有问题upload.php,
我有 php7 但我收到 500 错误。
我的解决方案是下载 codeigniter 3.0.6 并复制文件 upload.php 并将其粘贴到系统/库
我得到:
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'];
}
}
}
控制台报错,网络选项卡无响应
codeigniter 3.1.2 有问题upload.php, 我有 php7 但我收到 500 错误。 我的解决方案是下载 codeigniter 3.0.6 并复制文件 upload.php 并将其粘贴到系统/库