[eluser]Unknown[/eluser]
1.At first the flv upload is not allowed.
2.So i added the mime type.
the entry i added in mime
Code:
'flv' => array('video/flv', 'video/x-flv', 'flv-application/octet-stream', 'application/octet-stream'),
3.This actually started uploading flv..but all the other file formats where also being uploaded no matter what the file is.
this is part of the code
Code:
upload code:
function upload_process()
{
//upload settings
$config['upload_path'] = './videos/';
$config['allowed_types'] = 'flv';
$config['max_size'] = '200000';
$config['encrypt_name'] = TRUE;
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload())
{
$error = array('error' => $this->upload->display_errors());
print_r($error);
}
else
{
///after codes
}