[eluser]Justin Patel[/eluser]
Hello Friends,
Code:
$config['upload_path'] = './language/';
$config['allowed_types'] = 'gif|jpg|png|php';
$config['max_size'] = '15500';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
$upload = $this->upload->do_upload();
When I try to upload .php file. It gives error like
Code:
Array ( [error] =>
The filetype you are attempting to upload is not allowed
)
But it works for the .gif images
Please Help me out
Best Regards