It gives “The filetype you are attempting to upload is not
allowed.” error when I was trying to upload flv and wmv files using codeigiter
“upload” library.
I was sure about $config array. But this error was there
when I was trying video upload.
My $config settings were as follows.
//CodeIgniter Code
$configVideo['upload_path'] = './upload/video';
$configVideo['max_size'] = '10240';
$configVideo['allowed_types'] = 'avi|flv|wmv|mp3';
$configVideo['overwrite'] = FALSE;
$configVideo['remove_spaces'] = TRUE;
$video_name = $_FILES['video']['name'];
Solution:
Open mimes.php file in config folderAdd folowing two lines into the $mimes array'wmv'=>array('video/wmv', 'video/x-ms-wmv', 'flv-application/octet-stream', 'application/octet-stream'),'flv' =>array('video/flv', 'video/x-flv', 'flv-application/octet-stream', 'application/octet-stream'),
Hope this will help you out..
Thanks for visiting my blog..
as for me, i prefer to convert flash to video using this tool http://www.macvide.com/Macvide_FlashVideo_Converter/, it's easy-to-use and works great!)
ReplyDeleteThanks Kiki for sharing such kind of great link.. :)
ReplyDeletebhai apne page ko seo karo
ReplyDelete