Video Uploading Problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Video Uploading Problem (/showthread.php?tid=9938) Pages:
1
2
|
Video Uploading Problem - El Forum - 07-14-2008 [eluser]Gewa[/eluser] I have problem with uploading .flv and .mp4 files. I have added in mimes.php Code: 'flv' => 'video/x-flv', here is 2 functions that should make upload, one is the form. Code: function add_videos($lid,$type="step1"){ Why I get the file type you are trying to upload is not allowed? Video Uploading Problem - El Forum - 07-14-2008 [eluser]thinkigniter[/eluser] Hi Gewa Just a quick question Are the permissions of your upload directory (./images/lokale/videos) set to 777 Video Uploading Problem - El Forum - 07-14-2008 [eluser]Gewa[/eluser] I am making project on local server and its automaticaly writble. The image uploading works fine. So its not a problem of folder . Video Uploading Problem - El Forum - 07-14-2008 [eluser]thinkigniter[/eluser] Question: On a windows machine? Video Uploading Problem - El Forum - 07-18-2008 [eluser]Gewa[/eluser] Yes on a Widnows machine. DENWER with APACHE PHP5,MYSQL5 Video Uploading Problem - El Forum - 07-18-2008 [eluser]Michael Wales[/eluser] Echo out the file_type key you receive from the data() method - depending on how your server is configured it may be using an incorrect mime type. The fix - just add the mime type that gets echo'd out to that file extension's list of accepted mime types. Video Uploading Problem - El Forum - 07-18-2008 [eluser]Gewa[/eluser] Hi Michael, thanks for your answer. But I don't know how to "Echo out the file_type key you receive from the data() method"... can you give a code, which will do that, or where to read about it... Video Uploading Problem - El Forum - 07-18-2008 [eluser]Michael Wales[/eluser] Code: if ($this->upload->do_upload($field_name)) { That will echo out all the info about the upload after the upload has been complete. Add that to your code, upload a file, utilize it to fix your mimetypes and delete the code out of controller. Video Uploading Problem - El Forum - 07-18-2008 [eluser]Gewa[/eluser] Thank you michael. With 10000 tries I have solved problem in such way, a) I added in my .htaccess file Code: AddType video/x-flv .flv b) i added this mime types in /application/config/mimes.php This solved the problem. Thank you ALLLLLLL Video Uploading Problem - El Forum - 07-15-2009 [eluser]newbie boy[/eluser] tried this solution, my flv file works perfectly but my mp4 not a single luck... can anyone help me with this? thanks... |