(массив) [14 элементов]
имя_файла: (строка)
тип_файла: (строка)
путь_файла: (строка)
полный_путь: (строка)
raw_name: (строка)
исходное_имя: (строка)
client_name: (строка)
file_ext: (строка)
file_size: (null) NULL
is_image: (логическое значение) false
image_width: (null) NULL
image_height: (ноль) NULL
image_type: (строка)
image_size_str: (строка)
Контроллер:
Код: Выделить всё
public function do_upload()
{
$config['upload_path'] = './assets/uploads/';
$config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['max_size'] = '8192';
$config['max_width'] = 0;
$config['max_height'] = 0;
$this->load->library('upload', $config);
die(var_dump($this->upload->data('')));
if ( ! $this->upload->do_upload('userfile'))
{
$error = array('error' => $this->upload->display_errors());
$this->load->view('upload_form', $error);
}
else
{
$data = array('upload_data' => $this->upload->data());
$this->load->view('upload_success', $data);
}
}
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/494 ... urns-false
Мобильная версия