Welcome Guest, Not a member yet? Register   Sign In
uploading video problems
#3

[eluser]vitoco[/eluser]
Print the raw $_FILES array to get the mime of the uploaded video and compare it with the one defined in config/mimes.php

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);

echo '<pre>'.print_r( $_FILES , true ).'</pre>';

if (!$this->upload->do_upload('userfile')) {
echo $this->upload->display_errors();
} else {
$file = $this->upload->data();
echo "Successfully Uploaded";
}

Saludos


Messages In This Thread
uploading video problems - by El Forum - 07-03-2012, 04:18 AM
uploading video problems - by El Forum - 07-03-2012, 06:43 AM
uploading video problems - by El Forum - 07-03-2012, 07:08 AM
uploading video problems - by El Forum - 07-03-2012, 07:25 AM
uploading video problems - by El Forum - 07-03-2012, 08:37 AM
uploading video problems - by El Forum - 07-03-2012, 08:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB