尝试将上传的文件移动到最终目的地时遇到问题
无法使用codeigniter的上传类上传文件,上传目录也存在, 下面是代码
$config = array(
'upload_path' => './upload_dir/users_docs/',
'allowed_types' => 'gif|png|jpeg',
'max_size' => 0,
'max_width' => 0,
'max_height' => 0,
'file_name' => $this->currTime,
);
$this->load->library('upload', $config);
if (!empty($_FILES['company_logo']['name']) && !$this->upload->do_upload('company_logo')) {
$error = array('error' => $this->upload->display_errors());
$this->session->set_flashdata('error_message', $error['error']);
redirect('home');
}
$data = array('upload_data' => $this->upload->data());
'file_name' => $this->currTime 存在问题,时间格式不正确,文件名 var 中出现撇号,我刚刚将其更改为其他内容,现在可以使用了,谢谢
当我想要更改或编辑附件时,即使是我自己也会收到相同的消息 以 Google 表格或网站形式 请帮助我。