Welcome Guest, Not a member yet? Register   Sign In
set_allowed_types() in Upload library. Mistery?
#5

[eluser]richthegeek[/eluser]
check lines 108-115 in the Upload.php file - the function is called by the variabled $method.

The method_exists() function checks all CI instance methods to see if there is a match, I guess, although im not sure 100% how this works.

Whilst is set_allowed_types() is never called explictly (that is, a search will never show it up) as long as that function exists, it will work.

To be honest itst just lazy and clever coding on the part of the dev.


Messages In This Thread
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-12-2008, 07:15 PM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-12-2008, 10:08 PM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 12:41 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 12:57 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 01:00 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 01:01 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 01:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB