is something wrong with upload class OR ? |
[eluser]Alaa Selim[/eluser]
hi i have a problem with the upload class when i try to set the allowed files types it only allow the first type in the list like this Code: $config['allowed_types'] = 'text|gif|jpg|png|zip|rar|doc'; it's only allow images and text but not zip,rar,doc when i change the code to this: Code: $config['allowed_types'] = 'zip|gif|jpg|png|text|rar|doc'; it's only allow images and zip but not text,rar,doc I've gone crazy i tried to check the class code and mimes but everything seems fine! where do you think the problem from? Thank you for your time.
[eluser]Alaa Selim[/eluser]
I just found out that this is bug in CI upload Class for more information you can see: http://ellislab.com/forums/viewthread/113029/P0/ it worked by making the image extensions at the end like this: Code: $config['allowed_types'] = 'txt|pdf|doc|gif|jpg|png'; see this post: http://ellislab.com/forums/viewthread/11...15/#644383 i think someone should point that out at the user guide until it fix. Thank you for your help!
[eluser]simpleCoder[/eluser]
Same here , its driving me nuts , it would upload zips . i keep getting "The filetype you are attempting to upload is not allowed." errors or it does not upload anything. |
Welcome Guest, Not a member yet? Register Sign In |