[eluser]andieevans[/eluser]
Hi
Fairly new to codeigniter, have used upload to upload images with no problems, howerver video is not working...
here is some code I am using:
Code:
$configVideo['upload_path'] = 'video/';
$configVideo['max_size'] = '13333330240';
$configVideo['allowed_types'] = 'avi|flv|wmv|mpg';
$configVideo['overwrite'] = FALSE;
$configVideo['remove_spaces'] = TRUE;
$this->load->library('upload', $configVideo);
$this->upload->initialize($configVideo);
if (!$this->upload->do_upload('userfile')) {
echo $this->upload->display_errors();
} else {
$file = $this->upload->data();
echo "Successfully Uploaded";
}
I am trying to upload a simple mpg video, and keep getting the following message:
"The filetype you are attempting to upload is not allowed."
this is annoying as it is a filetype that I am allowing!
any help will be mucho appreciated!