CodeIgniter Forums
i can`t upload wma - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: i can`t upload wma (/showthread.php?tid=13878)

i can`t upload wma - El Forum - 12-09-2008

i have got a form upload file but if i upload file mp3 which is ok but also i upload to file wma which is can`t upload.
i have got a error
file type not allowed!
function upload_multimedia($name,$path)

$config['upload_path'] = $path;
$config['allowed_types'] = 'mp3|wma|avi|wmv';

return $data['file_name'];
echo $this->ci->upload->display_errors();
return false;

i can`t upload wma - El Forum - 12-09-2008

you need to edit the config/mimes.php file to allow wma.. not sure how well it work cross platform though, I had a problem with Java files using this uploader..