[eluser]klintjefferson[/eluser]
after days of browsing the internet. ahaha. finally i got the video upload working.
for those who had the same issue as mine. look up the code shown above, my 1st post. I think thats a pretty correct to upload photo and dont forget to:
1st - add the correct mime type for the audio, video, image on the array if it still dont exist. as for mine. i added the:
= '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'),
= 'm4v' => 'video/x-m4v',
= 'mp4' => 'video/mp4',
since the are mostly the videos that i will be uploading.
2nd - I added:
= AddType video/x-m4v m4v
= AddType audio/x-m4a m4a
= AddType video/mp4 mp4
on the .htaccess
3rd - if you upload videos which is more that 2mb or 5mb. surely CI will provide you an error. The code which really provided me with the success:
= php_value upload_max_filesize 50M
= php_value post_max_size 50M
= php_value max_execution_time 200
= php_value max_input_time 200
i added this also on the .htaccess so that it can upload up to 50mb video.
~ i hope this could help and if their is a problem about my solution. feel free to tell me why. i am just also a novice.