The Upload () function is a PHP4 thing. This is a constructor function for the Upload object, it is deprecated.
__ construct () is the "new" way to execute constructors
index () is called on the index action, which is the default action
A visit / upload or / uploads / index will perform this function. The remaining two functions will always be performed.
Hope this clears up!
source
share