[eluser]Mohammed Zayan[/eluser]
In this problem I want to upload audios & videos files as here
Code:
if($this->input->post('competition_id') == 2){
$config['allowed_types'] = 'flv';
$config['max_size'] = 153600;
}else{
$config['allowed_types'] = 'mp3';
$config['max_size'] = 51200;
}
I make this to know what $_FILES array contan
Code:
echo "<pre>"; print_r($_FILES); echo "</pre>"; die();
When I select a video file or an audio file
I have this
but when I select an image I have this
Code:
Array
(
[userfile] => Array
(
[name] => 174509_510945018_2402858_n.jpg
[type] => image/jpeg
[tmp_name] => D:\xampp\tmp\phpFD38.tmp
[error] => 0
[size] => 14239
)
)
so the problem with audio & video.
How can I fix it??