Implement fileNameFunction

From TeckniX's fork:
https://github.com/josegonzalez/cakephp-upload/pull/155