[eluser]cojogrizli[/eluser]
Hello,
I'm trying to upload .avi files and I receive the error: "The filetype you are attempting to upload is not allowed."
I'm using the next configuration for upload:
Code:
$config['upload_path'] = FILE_PATH.'/images/uploads/';
$config['allowed_types'] = 'avi|flv|mpg|mov';
$config['max_size'] = '40000';
$config['remove_spaces'] = true;
$this->load->library('upload', $config);
When I'm uploading flv and mpg it's all working fine.
I receive the error only when I'm uploading .avi files.
In config/mimes.php I've just added the extension for flv.
Where it can be the problem?
Thanks!
I changed the mime configuration by adding:
Code:
'avi' => array('pplication/x-troff-msvideo', 'video/avi', 'video/msvideo', 'video/x-msvideo')
instead of
Code:
'avi' => 'video/x-msvideo'
and it's all working fine.