[eluser]Justin Patel[/eluser]
Hello friends,
I am trying to upload the flash file format, but it gives the error that this file format is not allowd.
please let me know, what can be the problem
Code:
$config['upload_path'] = './videos/';
$config['allowed_types'] = 'flv';
$config['max_size'] = '100000';
$config['max_width'] = '10000';
$config['max_height'] = '10000';
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload())
{
$error = array('error' => $this->upload->display_errors());
print_r($error);
}
else
{
$data = array('upload_data' => $this->upload->data());
print_r($data);
}