![]() |
Upload File type - 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: Upload File type (/showthread.php?tid=3832) |
Upload File type - El Forum - 10-24-2007 [eluser]Yash[/eluser] Hi, I've set this $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'gif|jpg|png|flv|avi'; $config['max_size'] = '10000'; $config['max_width'] = '1024'; $config['max_height'] = '768'; in proper location but when I try to load some.flv files..it shows The filetype you are attempting to upload is not allowed Is there any more setting... Thank you Upload File type - El Forum - 10-24-2007 [eluser]xwero[/eluser] flv is not a known type in the config/mimes.php file. You should make a simple upload form and check the mime of the file after the post using Code: echo $_FILES['fileinputname']['type']; And then add the flv key with the mimetype to the mimes.php file. Upload File type - El Forum - 10-25-2007 [eluser]Yash[/eluser] You are really nice guy. I mean u know a lot. THANK YOU xwero |