![]() |
i cant upload any thing except picture - 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: i cant upload any thing except picture (/showthread.php?tid=39586) |
i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]Sara rad[/eluser] hi ![]() i want upload psd , zip , rar , cdr and ai formay but i cant do this . im set allowed types to : Code: $config['allowed_types'] = 'psd|zip|rar|cdr|ai'; but this dont work . :-S sorry for my bad english . :zip: any help !? thanks i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]NeoArc[/eluser] Hmm.. I don't know. Make sure you don't set a width or height limit. i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]Sara rad[/eluser] ops ! for this types i must set width and height ? i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]NeoArc[/eluser] Nope. Check the configuration array, and make sure the upload path is valid. If you are using Linux, check the directory permissions i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]Sara rad[/eluser] every thing is ok , showed error is for not allowed types . i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]NeoArc[/eluser] Hmm. Sometimes the configuration array is overwritten when copying code, and the values are lost : ) (Check if ['allowed_types'] is being overwritten) i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]danmontgomery[/eluser] [quote author="Sara rad" date="1300220128"]every thing is ok , showed error is for not allowed types .[/quote] So we've established what the error isn't, any interest in sharing what it is? i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]Sara rad[/eluser] Error : The filetype you are attempting to upload is not allowed. i cant upload any thing except picture - El Forum - 03-15-2011 [eluser]bubbafoley[/eluser] make sure the file type you are trying to upload is in application/config/mimes.php 'rar' and 'cdr' are NOT in the mimes config. You can also do: Code: $config['allowed_types'] = '*'; but that's not exactly ideal. i cant upload any thing except picture - El Forum - 03-16-2011 [eluser]Sara rad[/eluser] i cant upload any thing except picture ! i test zip file but my script can't upload this type of files too . |