Problem with Video Uploading |
[eluser]soijiro[/eluser]
Hi guys, i got problem when i try to upload videos file (in other case it works such jpg, png, mp3). here's my controller Code: $this->img_config['upload_path'] = $this->dir; i try to debug when uploading video file (.mpeg). Code: array(14) { ["file_name"]=> string(0) "" ["file_type"]=> string(0) "" ["file_path"]=> string(7) "./data/" ["full_path"]=> string(7) "./data/" ["raw_name"]=> string(0) "" ["orig_name"]=> string(0) "" ["client_name"]=> string(0) "" ["file_ext"]=> string(0) "" ["file_size"]=> string(0) "" ["is_image"]=> bool(false) ["image_width"]=> string(0) "" ["image_height"]=> string(0) "" ["image_type"]=> string(0) "" ["image_size_str"]=> string(0) "" } Mime uploaded: but when i try to upload mp3 file it is work perfectly Code: array(14) { ["file_name"]=> string(32) "Adele+-+Set+Fire+To+The+Rain.mp3" ["file_type"]=> string(9) "audio/mp3" ["file_path"]=> string(32) "C:/xampp/htdocs/project/eo/data/" ["full_path"]=> string(64) "C:/xampp/htdocs/project/eo/data/Adele+-+Set+Fire+To+The+Rain.mp3" ["raw_name"]=> string(28) "Adele+-+Set+Fire+To+The+Rain" ["orig_name"]=> string(32) "Adele+-+Set+Fire+To+The+Rain.mp3" ["client_name"]=> string(32) "Adele+-+Set+Fire+To+The+Rain.mp3" ["file_ext"]=> string(4) ".mp3" ["file_size"]=> float(5819.98) ["is_image"]=> bool(false) ["image_width"]=> string(0) "" ["image_height"]=> string(0) "" ["image_type"]=> string(0) "" ["image_size_str"]=> string(0) "" } Mime uploaded: audio/mp3 i've checked mime, and i found what the mime for the ext what i set allowed. so, it is supposed to be work, i think. the problem when i upload .flv, .mpeg file, it show empty. Regards, Soijiro
[eluser]Learn CodeIgniter[/eluser]
If you are on a live server make sure that your hosting provider has those mime types installed, I had to go into my control panel to install the flv mime type. Add to .htaccess Code: AddType video/mpeg .mpeg .mpg .mpe
[eluser]soijiro[/eluser]
Thanks for reply man. I'm working on localhost now. i'm trying to check mime installed on C:\xampp\apache\conf\mime.types. but it still not work.
[eluser]Learn CodeIgniter[/eluser]
If you are running ci ver 2.1.0 I think there was a problem with mime types. Try the development ver on github. CodeIgniter on GitHub
[eluser]soijiro[/eluser]
Yes i'm running CI Ver. 2.1.0 i have replace my system/libraries/upload.php also with the update. error on line 1058. but still not work. edited I'll try to replace, with development version. still not work. |
Welcome Guest, Not a member yet? Register Sign In |