failed upload file save image file types - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: failed upload file save image file types (/showthread.php?tid=24553) |
failed upload file save image file types - El Forum - 11-12-2009 [eluser]kakap[/eluser] this my source: controller 'upload' Code: function uploadfile(){ model 'mupload' Code: function addFile(){ view 'upload' Code: <?php when I upload image file such *jpg, *gif, *png it worked, but when I tried to upload another file type such *rar, *doc, *etc.. its failed. is something I missed??? I use CI 1.7.2 thankyou for Ur appresiation failed upload file save image file types - El Forum - 11-18-2009 [eluser]timj[/eluser] I am having the same trouble with the following file types. Won't handle any but the first three: $config['allowed_types'] = 'gif|jpg|png|pdf|txt|rtf|doc|docx|xls|ppt|jpeg|bmp|zip'; failed upload file save image file types - El Forum - 01-13-2010 [eluser]JamesTaylor[/eluser] did anyone get the bottom of this? i'm currently having the same issue as well. failed upload file save image file types - El Forum - 01-13-2010 [eluser]timj[/eluser] Yes, it is a bug that hasn't been fixed (or documented in the User Guide), but the fix is pretty easy. You have to list your document types BEFORE your graphic types: 'pdf|txt|rtf|doc|docx|xls|ppt|zip|gif|jpg|png|jpeg|bmp' It's be great if they just added this to the User Guide. failed upload file save image file types - El Forum - 01-13-2010 [eluser]JamesTaylor[/eluser] Thanks timj, i've got side tracked at the moment but its good to answer for when i get back to it! failed upload file save image file types - El Forum - 02-08-2010 [eluser]dwin102003[/eluser] it does not work for me. how can we fix this problem any suggestions? failed upload file save image file types - El Forum - 02-08-2010 [eluser]maria clara[/eluser] maybe you have to check your mimes.php look at it in your system/application/config/. |