奇怪的上传问题
问题描述:
我有一个文件上传问题。奇怪的上传问题
我已经通过FTP和文件管理器
drwxrwxrwx 2用户用户4096 4月10日08:56图库/ drwxrwxrwx 2用户的用户完成777 4096 4月10日10:30销售/
我都回荡着$file_info
和位置显示为正确但文件不上传:
//Set File Settings
$config['upload_path'] = 'includes/uploads/gallery/';
$config['allowed_types'] = 'jpg|png';
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
$this->upload->do_upload();
$file_info = $this->upload->data();
$data = array(
'description' => $this->input->post('description', TRUE),
'path' => $file_info['file_name']
);
$this->image_model->addImage($data);
答
此问题是由于上载到服务器的连接速度缓慢造成的。我尝试了另一个连接,它运行良好。
答
请检查写入权限?如果你正在使用linux检查SELinux的首选项。