[eluser]Unknown[/eluser]
Hi,
Below is the code
Code:
$upload_path = realpath(APPPATH . 'assets/images/pictures/');
$upload_config = array(
'upload_path' => $upload_path,
'allowed_types' => 'jpg|png|jpeg',
'max_size' => 2000,
);
// Load library
$this->load->library('upload',$upload_config);
$this->upload->do_upload('uploadFile');
$image_data = $this->upload->data();
print_r($image_data);
The output:
Code:
Array (
[file_name] =>
[file_type] =>
[file_path] => C:\wamp\www\myApp1\application\assets\images\pictures/
[full_path] => C:\wamp\www\myApp1\application\assets\images\pictures/
[raw_name] =>
[orig_name] =>
[client_name] =>
[file_ext] =>
[file_size] =>
[is_image] =>
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] => )
When I'm upload jpg file, the upload working, but there is no file_name data on $this->upload->data()
Thanks.